private static void Init()
    {
        GenerateAlphaTextureEditor textureSettingEditor = GetWindow <GenerateAlphaTextureEditor>(false);

        textureSettingEditor.position = new Rect(Screen.currentResolution.width / 2 - 200, Screen.currentResolution.height / 2 - 70, 400, 140);
        textureSettingEditor.title    = "Create Alpha";
        textureSettingEditor.minSize  = new Vector2(420, 140);
        textureSettingEditor.maxSize  = new Vector2(425, 1000);
    }
Beispiel #2
0
    private static void GenSelectiveAlphaTexAndMaterial()
    {
        GenerateAlphaTextureEditor textureSettingEditor = GetWindow <GenerateAlphaTextureEditor>(false);

        for (int i = 0, n = textureSettingEditor._etcAlphaInfos.Length; i < n; i++)
        {
            GenAlphaTex(textureSettingEditor._etcAlphaInfos[i], true);
        }
    }
Beispiel #3
0
    private static void GenSelectiveAlphaTex()
    {
        GenerateAlphaTextureEditor textureSettingEditor = GetWindow <GenerateAlphaTextureEditor>(false);

        for (int i = 0, n = textureSettingEditor._etcAlphaInfos.Length; i < n; i++)
        {
            EtcAlphaInfo info = textureSettingEditor._etcAlphaInfos[i];
            Debug.LogFormat("正在处理 {0}", info.SourcePath);
            GenAlphaTex(info, false);
        }
    }