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
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
- URP Player remains in Windows Background processes when the application is closed
- [Android] The built-in URP shaders Lit, Complex Lit and the Simple Lit are not rendered when built on Android devices with an Adreno 300 series GPUs
- "Radio Button" disappears when added under the "RadioButtonGroup" and the parent Visual Element is selected
- ScrollView Scrollbar is jittering when Movement Type "Elastic" is selected and a mouse with a freewheel is used
- [WebGL]"TypeError: Cannot read properties of undefined (reading 'length')" error is thrown when starting the Player when config.autoSyncPersistentDataPath is set to true
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.