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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
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.