Difference between revisions of "Identifying Errors with the Unity Plugin V3"

From PopcornFX
Jump to navigation Jump to search
(Created page with "{| |link=Unity|50px<br/><div style="text-align:center;"><<<</div> | __TOC__ |} =Desktop= Errors, warnings and events originating from th...")
 
(Desktop)
Line 11: Line 11:
 
<br>
 
<br>
 
The PopcornFX Unity native plugin can log its major events, warnings and errors into an HTML file.<br>
 
The PopcornFX Unity native plugin can log its major events, warnings and errors into an HTML file.<br>
This can be enabled/disabled in Unity's editor via the [[Menus#Edit_.3E_PopcornFX_Preferences... | Edit>PopcornFx Preferences window]].<br>
+
This can be enabled/disabled in Unity's editor via the [[PKFxSettings_V3 | PKFxSettings]].<br>
 
Changing this setting requires to reopen the Unity project.<br>
 
Changing this setting requires to reopen the Unity project.<br>
[[Image:UnityPopcornFXPref.png]]
+
[[Image:UnityPopcornFXSettings V3.png]]
  
This setting is stored in the [[Unity/Configuration File | PopcornFX config file]] in the StreamingAssets, so it's accessible to the standalone builds as well.<br>
+
This setting is stored in the [[PKFxSettings_V3 | PKFxSettings]] asset, so it's accessible to the standalone builds as well.<br>
  
 
[[Image:UnityPKFxLogFile.png]]<br>
 
[[Image:UnityPKFxLogFile.png]]<br>

Revision as of 14:45, 5 July 2018

Unity-logo-g.png

Desktop

Errors, warnings and events originating from the Unity side of the plugin are logged into the console and are prefixed with "[PKFX]"
UnityPKFxErrorLog.png

The PopcornFX Unity native plugin can log its major events, warnings and errors into an HTML file.
This can be enabled/disabled in Unity's editor via the PKFxSettings.
Changing this setting requires to reopen the Unity project.
UnityPopcornFXSettings V3.png

This setting is stored in the PKFxSettings asset, so it's accessible to the standalone builds as well.

UnityPKFxLogFile.png
The file, named popcorn.htm is located at your project's root directory.
Warnings and errors are highlighted in different colors, respectively orange and red so you can easily visualize them.

Android

On Android the logs are sent to the logcat.
They can be isolated with the prefix "PK_LOG"

UnityPKFxLogcatAndroid.png

iOS

On iOS the logs are viewable in XCode's debugging console.

UnityPKFxiOSLog.png