- Home /
Unity Multiplayer - OnStartLocalPlayer() called multiple times
I am working on a two player multiplayer game. On my player script I override the function OnStartLocalPLayer() as I use this to set up the local player. However it appears that this is being called multiple times (4 times) on each client. As I understand it, this should be called once on the local player when the scene is loaded.
Additionally I have noticed that occasionally 8 instances of the player prefab spawn on each client, rather than the expected 2, which could explain why OnStartLocalPlayer() is called 4 times.
Has anyone else experienced an issue like this and if so did you manage to find a solution for this?
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Do i need to have 2 seperate apps communicating for server/client relationship? 2 Answers
Multiplayer push object error. 0 Answers
Help with multiplayer connection 0 Answers
multi-player android and IOS 2 Answers