TestWindow.Init C# (CSharp) Method

Init() private method

private Init ( ) : void
return void
    public static void Init()
    {
        if (instance != null) {
            instance.Show ();
            return;
        } else {
            instance = (TestWindow)EditorWindow.GetWindow (typeof(TestWindow), false, "Test Window");
            instance.wantsMouseMove = true;
            instance.Show ();
            instance.position = new Rect (50, 50, 400, 30);
        }
    }

Usage Example

Beispiel #1
0
    public static void ShowEditor()
    {
        TestWindow tw = EditorWindow.GetWindow <TestWindow>();

        tw.Init();
    }
All Usage Examples Of TestWindow::Init