Why does it say fix complier flies

when I was creating my first 3D game following this tutorial( (60) How to make Your First Game TODAY! - (Unity 3D) - YouTube ) I ran into a problem with the first scripting part(P.S I know this was made two years ago)
it said “fix all complier files before you can start playmode!” and I have looked over the script many times yet every time I fix a problem in my script it still says it.

Unity should be showing some specific compile errors in the Console window of the editor. You need to fix all of them. If you’re having trouble fixing them, feel free to share your code here as well as the entire error message and people on the forums can help you.

Usually the problem is that you haven’t copied the code from the tutorial 100% perfectly. Everything needs to be perfect right down to all the capitalization of letters and all symbols and punctuation in the code.

2 Likes

thanks Edit so I tried again and when I copied the tutorial perfectly and this is the error I got
“Assets\Soup script\Move.cs(15,35): error CS1061: ‘Rigidbody’ does not contain a definition for ‘Velocity’ and no accessible extension method ‘Velocity’ accepting a first argument of type ‘Rigidbody’ could be found (are you missing a using directive or an assembly reference?)” and yes I named my script folder “Soup script” and my script “Move” and here is my script "
// Update is called once per frame
void Update() {
GetComponent().Velocity = new Vector3(0.1f, 0, 0);
}
}" also I’m using the lastest version of visual studio

velocity is spelled with a lower-case ‚v‘

1 Like

This… 100% of everything must be spelled, capitalized and especially punctuated perfectly @ryanab333

Also, please use code tags: https://discussions.unity.com/t/481379

How to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220