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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
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.