- Home /
Parsing Error when use genericMenu Script
I have use the Code from the Unity Script Reference for add an genericMenu. http://docs.unity3d.com/Documentation/ScriptReference/GenericMenu.html
But i have an parsing error at Line "class MyWindow extends EditorWindow {" What is wrong?
Thanks for help.
Answer by Bunny83 · Jul 29, 2012 at 04:38 PM
Are you sure you have placed this script in an "editor" folder? Also make sure you use the correct language. Your example is written in UnityScript (Unity's Javascript). C# looks differently.
You posted almost nothing so we can't say much about your error...
Feel free to improve your question by pressing "edit".
Answer by Seth-Bergman · Jul 29, 2012 at 04:38 PM
the answer is right at the top of the page:
Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.
Your answer
Follow this Question
Related Questions
[Closed] MainMenu Script error 2 Answers
Main Menu Script Issues 1 Answer
expecting EOF, found 'showText' please help me! 1 Answer
One GameObjects Script Activating Another GameObjects Script 1 Answer