Example #1
0
    static void Init()
    {
        EnsureSpriteCollection();

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

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

        window.minSize = new Vector2(800, 500);
        window.Show();
    }
Example #2
0
    public static void LaunchSpriteEditor()
    {
        SpriteEditorWindow window = GetWindow <SpriteEditorWindow>();

        window.Show();
    }