public static void Show() { TexturePackerWindow window = EditorWindow.GetWindowWithRect <TexturePackerWindow>(new Rect(0, 0, 600, 400)); window.Init(); window.Show(true); }
private static void GetWindow() { window = (TexturePackerWindow)EditorWindow.GetWindow <TexturePackerWindow>(); window.titleContent.text = "Texture Packer"; window.minSize = new Vector2(500, 165); window.maxSize = new Vector2(500, 165); window.BeginWindows(); window.wantsMouseMove = true; windowTexture = new Texture2D(1, 1, TextureFormat.RGBA32, false); windowTexture.SetPixel(0, 0, new Color(0.68f, 0.68f, 0.68f)); windowTexture.Apply(); window.Show(); }
static void OpenTexturePacker() { TexturePackerWindow.Show(); }