I have code for character selection, and for the Network Manager, the player prefab has a placeholder with Network Identity. Everything works, but the character is not controllable with the character selection code. However, without the character selection code, everything works.
I have a code that prevents camera duplication for both characters. However, when selecting a character, the camera turns off, and if I remove this code, the camera duplicates. I don't know how to fix it, and I've been struggling with this issue for three days already. Please help me.
if (!isLocalPlayer)
{
playerCamera.gameObject.SetActive(false);
}
If you need the code for character control and character selection, please provide it.The code was taken from https://youtu.be/33cAxBiFUTw.I just wanted to do something to play with my friends but didn't know it would get so complicated. + my knowledge in the mirror is not great
This Unity Multiplayer tutorial will teach you how to implement character selection in your project. For project files access, check out my GitHub here: https://github.com/DapperDino/Mirror-Multiplayer-Tutorials
Multiplayer Course: https:/...