Why OnSceneGUI is not working in editor script ? Trying to make mouse click event in editor script.

I can’t even make a break point. The script is in the Assets/Editor folder in the editor.

I want to make mouse click event in editor script.

The [CustomEditor] attribute needs to decorate the class, not a function. I’m surprised that’s not giving you an error.

1 Like