kyleK
Normal7mo ago
10 replies
kyle

Recommended way to maintain a dict of Realtime prefabs?

I want every player to be able to check a dict or some other data structure to see all the Realtime prefabs of a certain type in a room (and access metadata about those prefabs, like who owns them). I could use a separate RealtimeDictionary and update it when the RT prefabs are instantiated/destroyed, but I imagine it would easily go out of sync if OnDestroy isn't always run on disconnecting clients.
Was this page helpful?