- Home /
How to open a Unity Built-in Editor Window
I would like to open a standard unity editor window from my c# script, specifically, the window that opens when one clicks on "Edit Textures," then "Edit Texture," in a Terrain object (it edits a selected SplatPrototype). Does anyone know where to find a list of the class names of the built-in editor windows (or just how to open this one)? Thanks.
Answer by jasonlu00 · Sep 15, 2017 at 10:18 PM
There's a similar post with the answer you are looking for: http://answers.unity3d.com/questions/1237463/how-do-i-get-a-reference-to-the-default-editor-win.html
Answer by Bunny83 · Sep 16, 2017 at 12:12 AM
That's a very simple editor window that is an internal class and specifically designed for the TerrainEditor. It can't be used for anything else than editing the terrain splat textures.
Depending on what's your goal it's way easier to create your own editor window for your specific case.
Anyways if you want to know what classes exist inside the UnityEditor dll, just have a look at it with ILSpy or any other .NET reflector, or just browse through the decompiled version online.
I guess you mean the TerrainSplatEditor
Answer by jimra · Sep 20, 2017 at 05:18 AM
Thank you both. Technically, both answers are correct, but I found the script on reflecting types most useful in a broader sense than my original question.
Answer by booferei · Apr 25 at 02:27 PM
I don't know about "Edit Texture" but you can open built-in Unity windows (e.g. Game) like this:
EditorApplication.ExecuteMenuItem("Window/General/Game");
Your answer

Follow this Question
Related Questions
How do I add a drop-down menu to an EditorWindow? 3 Answers
How do I have an EditorWindow save it's data inbetween opening and closing Unity? C# 5 Answers
How can I determine which GUILayout.Window was last clicked? 2 Answers
EditorUtiltiy.GetAssetPreview(Object asset) 0 Answers
Set icon of EditorWindow 2 Answers