We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a99d8de commit 5b0381fCopy full SHA for 5b0381f
source/Plugins/GoogleAnalyticsV3/GoogleAnalyticsV3.cs
@@ -118,7 +118,11 @@ void Awake() {
118
}
119
120
if (UncaughtExceptionReporting) {
121
- Application.RegisterLogCallback(HandleException);
+#if UNITY_5_0
122
+ Application.logMessageReceived += HandleException;
123
+#else
124
+ Application.RegisterLogCallback (HandleException);
125
+#endif
126
if (GoogleAnalyticsV3.belowThreshold(logLevel, GoogleAnalyticsV3.DebugMode.VERBOSE)) {
127
Debug.Log("Enabling uncaught exception reporting.");
128
0 commit comments