- Home /
Custom Editor Window
I'm looking for a tutorial on making a custom editor window for my Unity Add-on I'm making. I looked at http://docs.unity3d.com/Documentation/ScriptReference/Editor.CreateEditor.html but don't know what to put in as arguments and how to add content to the widow.
Answer by Sisso · Aug 12, 2013 at 06:32 PM
I don't know how to use CreatEditor. But I use this this template for create editor windows.
class AdminEditorWindow extends EditorWindow {
@MenuItem ("Game/Admin")
static function Init () {
var window = EditorWindow.GetWindow(AdminEditorWindow);
window.text = "nice";
}
var text: String = "what?";
function OnGUI () {
GUILayout.Label(text);
}
}
How would I add buttons to the editor window? Do I use EditorGUI?
Answer by himanshugupta159 · Sep 30, 2019 at 11:50 AM
Hey, you can check out the link below, it is a blog written by me related to "How to get started with editor window". https://unfragilecoding.blogspot.com/2019/09/unity-editor-window.html
Your answer
Follow this Question
Related Questions
Is there any performance or memory usage diffrence? 0 Answers
Asteroid Shooter - Bolts Not Spawning 0 Answers
Roll-a-ball tutorial does not work. 1 Answer