Rigidbody-based Player controller

I had a quick question regarding player controllers because the system automatically adds a character controller to my player character, despite the fact that I've already written a player controller using rigidbodies. Is the character controller mandatory? Or can I ignore it. How do I stop the system from auto-adding a player controller to player every scene starts?

​

I would ask this on the discord, but its not letting me verify my phone number for some reason.

2 comments · 100% upvoted · other discussions

comments

eggshellent

Mirror does not automatically add components to your player prefab (the one referenced by the network manager, which is what instantiates the player). A player prefab can be anything you want.

AFAIK, either your player prefab contains a character controller, or it has a component that explicitly requires a character controller.

BraveAd1220 [OP]

I figured it out. The issue is that my PlayerController shared the same name with another PlayerController. The two names kinda fought and so that was causing my issue. I changed the name of my script to something like "MyPlayerController" and the issue was resolved.