Search Issue Tracker
Not Reproducible
Votes
6
Found in
5.3.2f1
Issue ID
769877
Regression
No
Prefabbed and not applied long values get reverted when entering play mode
How to reproduce:
1) Open the LongBugScene scene from the attached project
2) Select the scene_LongData object
3) Notice it has a value of 888888888888888888
4) Give it a new value
5) Select the prefab_LongData object
6) Notice it has a value of 2222222222222222
7) Give it a new value
8) Enter play mode
Result:
scene_LongData's value will remain at whatever was set in step 4. prefab_LongData will revert to 2222222222222222, which is the value stored in the prefab.
Expected:
long values should behave the same as any other value when entering play mode, prefabbed or not.
Workaround: Apply changes to prefab and the play
Comments (3)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
skydestinies
Dec 05, 2017 23:17
I am running into this exact issue in Unity 5.6.1f1
How does one go about reopening an old issue? I've never used these bug report forums before...
Seto
Jun 25, 2016 08:46
I encounter this issue as well. It applies to List<long>, long[] as well.
Prefab is a template. If the prefab instance value won't save, it is useless for prefab mechanism.
plopmania
May 25, 2016 19:38
I have a habit of using prefabs as templates, that have a collection of settings as publics.
Say, a spawner that has frequency and things like that. So I could have multiple Instances of the same prefab in the scene, with different values.
This bug kinda breaks that utility, if I want to use long values.