コード例 #1
0
        public void ExportTexture()
        {
            var importer = SgtHelper.ExportTextureDialog(generatedTexture, "Water Gradient");

            if (importer != null)
            {
                importer.textureCompression = UnityEditor.TextureImporterCompression.Uncompressed;
                importer.wrapMode           = TextureWrapMode.Clamp;
                importer.filterMode         = FilterMode.Bilinear;
                importer.anisoLevel         = 16;

                importer.SaveAndReimport();
            }
        }
コード例 #2
0
        public void ExportTexture()
        {
            var importer = SgtHelper.ExportTextureDialog(generatedTexture, "Flare Texture (Generated)");

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

                importer.SaveAndReimport();
            }
        }
コード例 #3
0
        public void ExportTexture()
        {
            var importer = SgtHelper.ExportTextureDialog(generatedTexture, "Jovian Depth");

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

                importer.SaveAndReimport();
            }
        }
コード例 #4
0
        public void ExportTexture()
        {
            var importer = SgtHelper.ExportTextureDialog(generatedTexture, "Aurora MainTex");

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

                importer.SaveAndReimport();
            }
        }
コード例 #5
0
        public void ExportOuterTexture()
        {
            var importer = SgtHelper.ExportTextureDialog(generatedOuterTexture, "Atmosphere OuterDepth");

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

                importer.SaveAndReimport();
            }
        }