Brackeys / 2D-Character-Controller

Free 2D Character Controller for Unity.
https://youtu.be/dwcT-Dch0bA
1.16k stars 1.62k forks source link

Unable to add component #9

Open FoxOfFire opened 5 years ago

FoxOfFire commented 5 years ago

Unity spat out an error when I tried to add the component to an object: "Can't add script component 'CharadterController2D' because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match" I do not know what I did wrong since I downloaded the file and tried putting it on an object directly. Can anybody help?

Lethokuhle94 commented 5 years ago

I face the same problem. Any one with solution please

Lethokuhle94 commented 5 years ago

I was able to later find a way to make it work. I had to change the name of the class on the script

FanSeaJay commented 4 years ago

Grab the CharacterController2D from the project files, its the most recent version in there and didn't give me that issue when the one from this directory did.

artzuking commented 4 years ago

I was able to later find a way to make it work. I had to change the name of the class on the script

how do i change it