示例#1
0
    public static void Show()
    {
        TexturePackerWindow window = EditorWindow.GetWindowWithRect <TexturePackerWindow>(new Rect(0, 0, 600, 400));

        window.Init();
        window.Show(true);
    }
示例#2
0
    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();
    }
示例#3
0
 static void OpenTexturePacker()
 {
     TexturePackerWindow.Show();
 }