- Home /
C# Editor script in Unity
Hi, I am working on an editor tool to open a windowEditor when clicking on a gameObject to easily change some property. I did try some solution as "event" or else but nothing happened even a simple Script as that
public class TestEditor : Editor
{
void OnSceneGUI(){
Debug.Log("Current detected event: " + Event.current.type);
}
}
Can someone help me to do such script or show documentation that could help me? thanks
Is your script in a folder in your Assets root called "Editor"?
I assume you have the UnityEditor Namespace above this code, but did you specify the CustomEditor attribute?
If you want to open a new editor window, would you not use the EditorWindow?
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Copying files from one directory to the other 1 Answer
Help with door animation 1 Answer
How can I invoke code on the Editor GUI thread from a worker? 1 Answer
Working with Unity Editor 1 Answer