- Home /
Looking for comprehensive resource for Legacy UI in Editor
I am looking for comprehensive tutorials and documentation for LegacyUI specifically with Editor scripting as focus.
Most of the information in the docs is simplistic.
All these classes are used in creating GUI: EditorGUI, EditorGUILayout, GUILayout, EditorGUIUtility even GUI. Which one should be used when? How are they connected and used in unison? How do you really handle mouse clicks? How do you hitbox them with controls? What are best practices in handling events? How do you load GUISkin ?
After a whole day struggling I ended up with a spaghetti monster of code for really just a couple of labels. Are there any alternatives? 3rd-party UI for Editor GUI?
Answer by Bunny83 · May 14, 2015 at 01:19 PM
I've once written this GUI introduction which covers the basics of how it works in general. Basically all classes starting with "EditorXXX" are just extensions of the non "Editor" version. That means at runtime (in your game) you can only use the non-editor classes while in the editor you can use both.
If you need a more specific answer you have to ask a more specific question. Inside the Editor you can't really use any other GUI system. From a technical point of view it's of course possible but is way more complicated.
Your answer
Follow this Question
Related Questions
[Custom Editor] How to show a custom floating panel when shortcut is pressed ? 1 Answer
Callback for when a Graphic (Ui) Component is Added to any GameObject using the Editor 0 Answers
Is there a way to live-update script-controlled UI formatting in the editor? 1 Answer
ShaderGraph-like EditorWindow 0 Answers