network.instantiate inner workings

Hi,

I know network.instantiate works by calling rpc functions, but I’m a bit confused about the details of that.

My specific case is this: objects are instantiated before creating a server, thus they can’t be instantiated with network.instantiate but I want them to be there when the server is initialized. In order to avoid the really lazy approach of calling network.instantiate and destroying the previously created object I need to understand what the network.instantiate really is doing in the background.

The code example there is pretty much what Network.Instantiate does under the hood.

Thanks, that helped me :slight_smile:

I need to change the structure of my code in order to make that work. If I really understand that stuff it should work! (I’ll come back otherwise :stuck_out_tongue: )