Search Issue Tracker
Not Reproducible
Votes
0
Found in
5.6.2p2
Issue ID
928229
Regression
No
Script behavior error in build output_log when both parent and child classes have ifdefs
Reproduction Steps:
1. Import attached project.
2. Build and Run scene "ExampleB".
3. Inspect build's output_log.
Expected result: There should be no errors, like when ExampleA is built.
Actual result: Error in output_log:
A script behaviour (probably ChildB?) has a different serialization layout when loading. (Read 32 bytes but expected 36 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
Reproducible with: 5.5.4f1, 5.6.2p2, 2017.1.0f3, 2017.2.0b1.
If have both inheritance ways with ifdefs both inside parents and children just in case, each in its own scene to build each time. See how the one with the generic type, produces the above error.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
- [Android] The Player loses focus when using UnityEngine.Handheld.StartActivityIndicator() with Facebook SDK
- Build fails with "Building Library/Bee/artifacts/MacStandalonePlayerBuildProgram/gahcy/hj9mx3z/951.0 failed with output:..." errors when Scripting Backend is set to IL2CPP
Add comment