Hi there! I just want to draw how a script looks with a CustomEditor in a EditorWindow but when i draw the default inspector i cant see what my customeditor do.
How can i show a Script with a CustomEditor in a EditorWindow?
Thanks!
Hi there! I just want to draw how a script looks with a CustomEditor in a EditorWindow but when i draw the default inspector i cant see what my customeditor do.
How can i show a Script with a CustomEditor in a EditorWindow?
Thanks!
I think you should take a look at:
You could do it with something like that: (not tested)
Editor customEditor = Editor.CreateEditor(instance, typeof(YouCustomEditorType));
customEditor.OnInspectorGUI ();
And that is correct!
Thanks a lot!