Context:
Our company is trying to build a music application in Unity and recently put some Analytics Event Tracker scripts into our project.
Expected Behavior:
When we build out the project, we should not get any errors.
Actual Behavior:
When we build, our project breaks and we get the following errors.
Is there something wrong with the way we are implementing the Analytics Event Tracker below?
The file ‘C:/Users/gilli/Desktop/HubBuilds/8519_57/ControlRoomRift_Data/level0’ is corrupted! Remove it and launch unity again!
[Position out of bounds!]
(Filename: C:\buildslave\unity\build\Runtime/Serialize/SerializationCaching/CachedReader.cpp Line: 214)
The file ‘C:/Users/gilli/Desktop/HubBuilds/8519_57/ControlRoomRift_Data/level0’ is corrupted! Remove it and launch unity again!
[Position out of bounds!]
(Filename: C:\buildslave\unity\build\Runtime/Serialize/SerializationCaching/CachedReader.cpp Line: 220)
A scripted object (probably UnityEngine.Analytics.AnalyticsEventTracker?) has a different serialization layout when loading. (Read 144 bytes but expected 408 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: C:\buildslave\unity\build\Runtime/Serialize/SerializedFile.cpp Line: 2001)
Implementation: