Skip to main content
New Participant
February 2, 2026
Question

Script 'CharacterController' has the same name as built-in Unity component.

Script 'CharacterController' has the same name as built-in Unity component.

AddComponent and GetComponent will not work with this script.

 

I've been using unity, meta hello world example and have come across this issue and I can't find a solution for it.

Is there an easy solution, can I just rename the script? I tried that but it seems to open another can of worms.

Why would meta name a script with a name reserved by unity if it just causes problems?

Thanks for any help.