예제 #1
0
    static void AddWindow()
    {
        Rect wr = new Rect(0, 0, 500, 500);
        CustomWindowEditor window = (CustomWindowEditor)EditorWindow.GetWindowWithRect(typeof(CustomWindowEditor), wr, true, "widow name");

        window.Show();
    }
    static void ShowWindow()
    {
        Rect theRect = new Rect(0, 0, 500, 500);
        CustomWindowEditor window = (CustomWindowEditor)EditorWindow.GetWindowWithRect(typeof(CustomWindowEditor), theRect, true, "我的窗口");

        window.Show();
    }