-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
I encountered a problem where a gameobject did not keep its UUID and generated a new one everytime on scene load because all instances of the prefab had the same UUID.
To recreate...
- Create a prefab and place it in a scene a few times.
- Save the scene.
(You may need to load another scene at this point?) - Add a script which inherits from UUID to the prefab.
- Load the scene containing your prefabs.
At this point a UUID is created for the new prefabs in the scene but saving does not save the new UUID unless you manually change the UUID. Unity does not recognise the UUID has been changed unless you manully edit it, so saving results in a new UUID for the given object everytime.
Using Unity 2018.2
A workaround is to then remove the component which inherits from UUID and add it again. Unity then recognizes the changed UUID.
Metadata
Metadata
Assignees
Labels
No labels