- Home /
Question by
alexc1995 · May 07, 2012 at 01:55 PM ·
instantiatenetworkserver
Network side instantiating
I'm working on a fully-authorative server. I've currently set-up the login and passing of session keys and what not. However, when I perform Network.Instantiate on the server, it appears on the server but not on the client. Do I need to call instantiate on the player side too?
Also to note, I'm using a completely different scene for the server side.
Thanks.
Comment
Best Answer
Answer by alexc1995 · May 07, 2012 at 03:30 PM
Nevermind, I fixed it. For anybody interested in the problem, it was quite simple:
The build of the client did not include the prefab and therefore did not instantiate it on the server side. In order to do this, I created a script that referenced all the files in an array and added to the camera in my client. It worked just fine.