Esempio n. 1
0
    static void CreateWindow()
    {
        var d = Database.Instance;
        ItemEditorWindow window = (ItemEditorWindow)EditorWindow.GetWindow(typeof(ItemEditorWindow));

        window.Show();
    }
Esempio n. 2
0
    static void Init()
    {
        EnsureItemsCollection();
        EnsureSpriteCollection();

        gridTexture = Resources.Load("grid_4x4", typeof(Texture2D)) as Texture2D;

        // Get existing open window or if none, make a new one:
        ItemEditorWindow window = (ItemEditorWindow)ItemEditorWindow.GetWindow(typeof(ItemEditorWindow));

        window.minSize = new Vector2(800, 500);
        window.Show();
    }
Esempio n. 3
0
    static void CreateWindow()
    {
        ItemEditorWindow window = (ItemEditorWindow)EditorWindow.GetWindow(typeof(ItemEditorWindow));

        window.Show();
    }