Question by
ericcheong382 · Feb 18, 2018 at 02:53 PM ·
scripting problemscripting beginner
My movement script wont work
I am a total beginner at making scripts and i copied a movement script from a you tube video https://www.youtube.com/watch?v=Tm2L-_0eIeY&t=1321s I put the script into my own C++ File and it won't work. The error says "Can't add script command "Eric Movement" 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 really don't know what this means, please help me!
Comment
Answer by Lilius · Feb 18, 2018 at 05:35 PM
Your file name must be the same as your class name (open the file and check that name after "public class" matches your file name).
Your answer
![](https://koobas.hobune.stream/wayback/20220612152854im_/https://answers.unity.com/themes/thub/images/avi.jpg)