- Home /
Do I need to instantiate multiplayer assets?
Do I need to instantiate a prefab in order for it to be seen on the server?
Example is that I have a scene with a prefab with a network view and I want other players to see it, must it be instantiated? or can it just be present in the scene?
am super new to multiplayer code:
Thanks guys!
I don't think you have to show it on the server side at all.
As long as your code knows that it needs to show it to the players.
Answer by Drshk7 · Jun 30, 2013 at 08:40 AM
It does not have to be instantiated. It can just be presented on the scene.
so when the other players connect the main character will be present?
So for every player that joins, it has its own unique player. Don't forget to add networkview.is$$anonymous$$ine restrictions. If you don't, when you move, every character that's network.instantiated moves with it. For example, you press "w" to move forward, all the players move forward. Read about it.
Thank you so much for your help :) I will accept your answer (for forum karma). Just one last question, is it simple to set NetworkView.is$$anonymous$$ine? or is it a more complex process?
Yes. You just disable the scripts on the player. And then make a script that enables them if networkview.is$$anonymous$$e = true so that you only control your player
Your answer
![](https://koobas.hobune.stream/wayback/20220613105147im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Passing random values to a client. 0 Answers
How can I check if a particular IP is a server? 1 Answer
How to implement a Room Mode Multiplayer Game code structure. 1 Answer
Server and Network no communication 1 Answer