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)

  1. 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...

  2. 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.

  3. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.