- Home /
Why won't my scripts work?
Hi,
I've been trying to figure out why none of my scripts load in Unity, however, I just don't know what's wrong. The file and public class name are the same on all these, but for some odd reason,alt text they won't work. I've tried updating Unity and still nothing.
This happened to me once as a Visual Studio error. I had to install the Unity tools again. Also, editing a Unity script outside Unity will cause the same error. (because you don't have $$anonymous$$onoBehaviour or using UnityEngine.
Installing Unity tools again, and opening the file from within the unity application, that then opens visual studio for you.
Answer by qsp18 · Dec 07, 2020 at 03:01 PM
Probably u renamed the script in the unity asset-folder. In the Unity-Asset-Folder his name should be "ThirdPersonMovenent", not "ThirdPersonMovement".
Or u change in the script the: public class ThirdPersonMovenent : MonoBehavior {
to: public class ThirdPersonMovement : MonoBehavior {
@qsp18 But it says ThirdPerson$$anonymous$$ovement in the class and is saved as that
Your answer
Follow this Question
Related Questions
Making a character jump and crouch using a Joystick 1 Answer
How to share varibles betweent scripts 4 Answers
What is wrong with the script 1 Answer
Cant play animation ontriggerenter plz help C# 1 Answer
Visual Studio Code Intellisense 0 Answers