Unity-Technologies / guid-based-reference

A component for giving Game Objects a GUID and a class to create references to objects in any Scene by GUID
Other
625 stars 71 forks source link

Prefab RevertAll resets GUID on prefab instances - possible workaround? #12

Closed chrisyarbrough closed 5 years ago

chrisyarbrough commented 5 years ago

When I select Overrides > Revert All from the prefab instance inspector in the scene, an attached GuidComponent will reset its GUID to a new value. It kind of makes sense, because it resets all instance properties, but in the special case of unique IDs, this breaks all connections in GuidReferences.

Is there any way to keep the GUID when Revert All is selected?

william-w-armstrong commented 5 years ago

Hmmm - very good point, but I don't think that is actually do-able unfortunately.