Search Issue Tracker
Fixed in 5.0.X
Votes
0
Found in
5.0.0b3
Issue ID
632337
Regression
No
Serialized data can not be loaded on deployed Windows Phone 8.1 C# Project
Steps to reproduce:
1. Download attached project or make a project which has serialized data in it. For example, a custom script with a public string field. Change that field in the inspector to some value.
2. Build and run that project with Unity C# Projects checkbox ticked in build settings. Errors will be thrown. For example:
InvalidCastException: Unable to cast object of type 'DrawText' to type 'UnityEngine.IUnitySerializable'.
at UnityEngine.Internal.Types.$UnityType639.$Invoke0(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: TODO Line: 0)
A script behaviour has a different serialization layout when loading. (Read 32 bytes but expected 52 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: 1578)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
Add comment