Skip to content

Prefab UUID problem #1

@ghost

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

  1. Create a prefab and place it in a scene a few times.
  2. Save the scene.
    (You may need to load another scene at this point?)
  3. Add a script which inherits from UUID to the prefab.
  4. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions