HarperH
Normal2y ago
Harper

Are Realtime Views instantiated on a separate thread?

I'm experiencing some peculiar behavior. I have some networked game objects using a custom model. When they are instantiated, they add themselves to a static "instances" list on awake. In another game object, I am enumerating through that list in update.

The issue is that when I instantiate them over the network, the enumeration fails.
Collection was modified; enumeration may not execute.
So, I may have a misunderstanding of what's happening, but my assumption is that Realtime.Instantiate happens on its own thread. How should I navigate this issue?
Was this page helpful?