示例#1
0
    public void ExportTexture()
    {
        var importer = SgtHelper.ExportTextureDialog(generatedTexture, "Flare Texture");

        if (importer != null)
        {
            importer.textureCompression = TextureImporterCompression.Uncompressed;
            importer.alphaSource        = TextureImporterAlphaSource.None;
            importer.wrapMode           = TextureWrapMode.Clamp;
            importer.filterMode         = FilterMode.Trilinear;
            importer.anisoLevel         = 16;

            importer.SaveAndReimport();
        }
    }
示例#2
0
    public void ExportTexture()
    {
        var importer = SgtHelper.ExportTextureDialog(generatedTexture, "Aurora MainTex");

        if (importer != null)
        {
            importer.textureCompression  = TextureImporterCompression.Uncompressed;
            importer.alphaSource         = TextureImporterAlphaSource.FromInput;
            importer.wrapMode            = TextureWrapMode.Repeat;
            importer.filterMode          = FilterMode.Trilinear;
            importer.anisoLevel          = 16;
            importer.alphaIsTransparency = true;

            importer.SaveAndReimport();
        }
    }
示例#3
0
    public void ExportOuterTexture()
    {
        var importer = SgtHelper.ExportTextureDialog(generatedOuterTexture, "Outer Depth");

        if (importer != null)
        {
            importer.textureType         = TextureImporterType.SingleChannel;
            importer.textureCompression  = TextureImporterCompression.Uncompressed;
            importer.alphaSource         = TextureImporterAlphaSource.FromInput;
            importer.wrapMode            = TextureWrapMode.Clamp;
            importer.filterMode          = FilterMode.Trilinear;
            importer.anisoLevel          = 16;
            importer.alphaIsTransparency = true;

            importer.SaveAndReimport();
        }
    }