I am trying to create a LAN game for my school thesis and I can't seem to figure out how to spawn different prefabs for each player that connects to the server using Mirror in Unity. I am able to create a room but every time a player joins, he will have the same prefab as the server and I want it to be different.
This is the settings of my Network Manager. I attached a script to it called Char1 with a code from here
I am able to create a room and sync everything with Parrelsync but unable to set different prefabs for each player that will connect. Any info that you need in order to help me just tell me and i will try to answer asap.
Since the answer wasn't given to your question:
At the top of your custom NetworkingManager class (which should inherit from NetworkManager, by the way), you should create a public GameObject variable. When your code compiles it will show in your editor as whatever you named it. After that, you can set it to a prefab object that you've made.
After that, it's just a matter of setting the GameObject you're instantiating to that in the code.
https://mirror-networking.gitbook.io/docs/guides/gameobjects/custom-character-spawning is a good reference for the base class concepts here.