public static SpritePackerEditor ShowWindow() { SpritePackerEditor window = EditorWindow.GetWindow <SpritePackerEditor>("Sprite Packer"); window.minSize = new Vector2(167f, 215f); return(window); }
private void EndBake() { //textures.RemoveAt (textures.Count - 1); if (views.Count - 1 > viewIndex) { viewIndex++; clipIndex = 0; currentFrame = 0; bakeAction = StartBake; return; } bakeAction = null; clipIndex = 0; currentFrame = 0; viewIndex = 0; EditorUtility.ClearProgressBar(); SpritePackerEditor packer = FindObjectOfType <SpritePackerEditor> (); if (packer == null) { packer = SpritePackerEditor.ShowWindow(); } packer.textures = textures; packer.Repaint(); }
public static void OpenSpritePackerEditor() { SpritePackerEditor.ShowWindow (); }