Unique persistent ID of Objects

I guess it must be somewhere out there.

I need to save changed Objects in a Database to load them with a different plugin on a different client.
Unfortunately InstanceID is changing every time the scene loads.

If I do it with GUID then the Client has some GUIDs but no idea on which Gameobject to put them.
If I use a dummy Gameobject to store the Gameobjects with a fixed created GUID I have the problem that if the client is creating one the gameobject does not sync.

You could make the server authoritative. The server maintains the master list of all GUIDs. When a client needs a GUID, it tells the server what it’s for. The servers generates a GUID and returns it to the client.

1 Like

Yes I guess I need to have a gameobject that tracks and a listener that syncs :slight_smile: thankee