Skip to content

Commit 1378f45

Browse files
committed
Support Unity 5+ instead of only Unity 5.0
The old file checked specifically for Unity 5.0 to use the new api, but now that 5.1 and soon 5.2 are released the check needs to be improved. This define only checks the major version, so it should work until Unity 6 is released.
1 parent ab62677 commit 1378f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Plugins/GoogleAnalyticsV3/GoogleAnalyticsV3.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void Awake() {
118118
}
119119

120120
if (UncaughtExceptionReporting) {
121-
#if UNITY_5_0
121+
#if UNITY_5
122122
Application.logMessageReceived += HandleException;
123123
#else
124124
Application.RegisterLogCallback (HandleException);

0 commit comments

Comments
 (0)