Hi,
I’m trying to integrate Unity Analytics on my project. I have successfully integrated it on Android and iOS, but when I switch to WebGL I get a compiler error:
Assets/Plugins/UnityAnalytics/WebGLWrapper.cs(4,39): error CS0246: The type or namespace name `BasePlatformWrapper’ could not be found. Are you missing a using directive or an assembly reference?
The issue is that in the PlatformWrapper.cs there is a precompilation check with the unity versions, but it doesn’t have the UNITY_5_2 check. It’s like this:
#if(UNITY_IPHONE||UNITY_ANDROID||UNITY_STANDALONE||UNITY_WEBPLAYER||UNITY_WEBGL||UNITY_METRO)&&(UNITY_4_2||UNITY_4_3||UNITY_4_4||UNITY_4_5||UNITY_4_6||UNITY_4_7||UNITY_4_8||UNITY_4_9||UNITY_5_0||UNITY_5_1)
where it should be:
#if(UNITY_IPHONE||UNITY_ANDROID||UNITY_STANDALONE||UNITY_WEBPLAYER||UNITY_WEBGL||UNITY_METRO)&&(UNITY_4_2||UNITY_4_3||UNITY_4_4||UNITY_4_5||UNITY_4_6||UNITY_4_7||UNITY_4_8||UNITY_4_9||UNITY_5_0||UNITY_5_1||UNITY_5_2)
I’m using Unity 5.2.0f3 with the latest Unity Analytics 1.9.5 (downloaded from the Asset Store).
Is anyone more having this issue? Is there a side effect if I fix the error changing the PlatformWrapper.cs class.
Thanks in advance,