- Home /
Sir i have parsing error please help
GUI.Box (new Rect (10, 10, 100, 200), "Content"); when i wright this code its get the parsing error thanks
Sorry sir these is my full script
using UnityEngine; using System.Collections;
public class c : $$anonymous$$onoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI(){
//We have to make a Backround
GUI.Box (new Rect (10, 10, 100, 200), $$anonymous$$enu);
}
As mentioned in the comment, you are missing the bracket at the end of the file that closes off the class. Add a '}' at the end of the file. You can count your brackets. You have four opening brackets, and only three closing brackets. Note you can place your cursor at a bracket in $$anonymous$$onodevelop and the matching bracket will be highlighted.
What is $$anonymous$$enu? If it's a string, there must be double quotes around of it. If it's a variable, then it must be declared in class and assigned somewhere.
Your answer
Follow this Question
Related Questions
How to headbob in mobile assets (joystick android)? 0 Answers
Spawn error 2 Answers
Adding Images 1 Answer
pop a ViewController animated 0 Answers