static void Init()
    {
        EditorWindowExample window = ScriptableObject.CreateInstance <EditorWindowExample>();

        window.position = new Rect(Screen.width / 2, Screen.height / 2, 250, 150);
        window.ShowModalUtility();
    }
示例#2
0
    private static void Init()
    {
        EditorWindowExample exemple = GetWindow <EditorWindowExample>();

        exemple.Show();
    }