Hi there!
I have a script called GEditor. In this script I have a class:
class GEditor extends Editor {
override function OnInspectorGUI () {
//main code goes here
}
}
It’s for extending my inspector. Now how would I add a button that will open new separate window without making separate script file? Is it possible?
I tried adding new class extending EditorWindow(from the docs) but unity screams errors in my face(namespace taken, because “GEditor” is taken ). I tried inserting EditorWindow.GetWindow (docs), but that gives ambiguity errors.
So, is this possible without making a mess? Or unity programmers were having a bad day when implementing this?