Forum Discussion

Darnellyicious's avatar
Darnellyicious
Honored Guest
10 days ago

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.

 

 

No RepliesBe the first to reply

→ Find helpful resources to begin your development journey in Getting Started

→ Get the latest information about HorizonOS development in News & Announcements.

→ Access Start program mentor videos and share knowledge, tutorials, and videos in Community Resources.

→ Get support or provide help in Questions & Discussions.

→ Show off your work in What I’m Building to get feedback and find playtesters.

→ Looking for documentation?  Developer Docs

→ Looking for account support?  Support Center

→ Looking for the previous forum?  Forum Archive

→ Looking to join the Start program? Apply here.

 

Recent Discussions