Unity-Technologies / CharacterControllerSamples

Sample projects for the Unity.CharacterController package
Other
225 stars 41 forks source link

Netcode tutorial doesn't handle multiple MainEntityCamera from different clients but uses HasSingleton<MainEntityCamera> #6

Open brian-mpg opened 2 weeks ago

brian-mpg commented 2 weeks ago

If you follow the directions in https://github.com/Unity-Technologies/CharacterControllerSamples/blob/master/_Documentation/Tutorial/tutorial-netcodecharacters.md

Everything works in the editor fine, that is until a second client connects. That's when that world creates a 2nd MainEntityCamera entity and the MainCameraSystem breaks.

Considering it's a tutorial for netcode it should be assumed it's for multiplayer and multiple clients.