Hello,
I’m trying to use this line of code to get a reference to a game object given its network object ID stored in a network variable.
GameObject spawnedObject = NetworkSpawnManager.SpawnedObjects[networkID.Value].gameObject;
but it doesn’t like that, saying "An object reference is required for the non-static field, method, or property ‘NetworkSpawnManager.SpawnedObjects’. I thought this meant I had to create an object of this class, but then it says “there is no constructor”. Can anyone push me in the right direction of how to correctly interact with this NetworkSpawnManager? Thank you.