- Home /
Problem is not reproducible or outdated
No problem on playmode, but shown 3 confusing error when compiled. How to fix them?
Hello, I'm new to Unity for 2D game development, and this will be my first question. I have a script to restrict sprite movement out of screen, and its going well when I enter playmode. The confusing part is Unity show three same error, but show no error sign on MonoDevelop. Please help! Thank You.
Error shown: (have tried to double click on error to see details, but nothing happen!)
"All compiler errors have to be fixed before you can enter playmode! UnityEditor.SceneView:ShowCompileErrorNotification()"
My script: (tell me if you can't see image below)
What are the errors?
Also, It's better to post code ins$$anonymous$$d of a screenshot. In case someone would want to try out your code, he's not going to type it all in.
@doublemax, i have tried again and its no problem now. It seems Unity do not clear previous error message compiled (the error said "All compiler errors have to be fixed before you can enter playmode! UnityEditor.SceneView:ShowCompileErrorNotification()")
Anyway, thank you very much! Next time i'll paste related code.
Follow this Question
Related Questions
Need help on my script to calculate gravity for a mass 1 Answer
Member cannot be accessed with an instance reference; qualify it with a type name instead 1 Answer
Inconsistent gravity/random forces/solver problem? (forum crosspost) 0 Answers
(2D) character jumping problem [is grounded detection, rigidbody2d] 2 Answers
how polygon collider 2d calculates center of mass? 2 Answers