public CustomTextureImporterSettingValue()
        {
            TextureType        = new ImporterTextureTypeValue();
            TextureShape       = new ImporterTextureShapeValue();
            TextureShape.Value = TextureImporterShape.Texture2D;
            WrapMode           = new ImporterWrapModeValue();
            FilterMode         = new ImporterFilterModeValue();
            AnisoLevel         = new ImporterIntValue();
            AnisoLevel.Value   = 1;

            FitSize             = new ImporterBoolValue();
            MaxSize             = new ImporterIntValue();
            MaxSize.Value       = 1024;
            Compression         = new ImporterCompressionValue();
            AllowAlphaSplitting = new ImporterBoolValue();
            Format = new ImporterTextureFormatValue();
            UseCrunchCompression     = new ImporterBoolValue();
            CompressionQuality       = new ImporterIntValue();
            CompressionQuality.Value = 50;
#if UNITY_2017_2_OR_NEWER
            ResizeAlgorithm = new ImporterResizeAlgorithmValue();
#endif

            isAdvanced              = false;
            NonPowerOf2             = new ImporterNPOTScaleValue();
            ReadWriteEnabled        = new ImporterBoolValue();
            GenerateMipMaps         = new ImporterBoolValue();
            BorderMipMaps           = new ImporterBoolValue();
            MipMapFiltering         = new ImporterMipFilterValue();
            MipMapFiltering.Value   = TextureImporterMipFilter.BoxFilter;
            FadeoutMipMaps          = new ImporterBoolValue();
            FadeoutStartValue       = new ImporterFloatValue();
            FadeoutStartValue.Value = 1;
            FadeoutEndValue         = new ImporterFloatValue();
            FadeoutEndValue.Value   = 3;
#if UNITY_2017_1_OR_NEWER
            MipMapsPreserveCover   = new ImporterBoolValue();
            AlphaCutoffValue       = new ImporterFloatValue();
            AlphaCutoffValue.Value = 0.5f;
#endif

            SpriteMode          = new ImporterSpriteModeValue();
            SpriteMode.Value    = SpriteImportMode.Single;
            MeshType            = new ImporterSpriteMeshTypeValue();
            PackingTag          = new ImporterStringValue();
            PixelsPerUnit       = new ImporterIntValue();
            PixelsPerUnit.Value = 100;
            ExtrudeEdges        = new ImporterIntValue();
            Pivot = new ImporterSpritePivotValue();

            sRGB                = new ImporterBoolValue();
            AlphaSource         = new ImporterAlphaSourceValue();
            AlphaIsTransparency = new ImporterBoolValue();

            CreateFromGrayScale = new ImporterBoolValue();

            LightType = new ImporterLightTypeValue();
        }
        public CustomTextureImporterSettingValue(CustomTextureImporterSettingValue copy)
        {
            TextureType  = new ImporterTextureTypeValue(copy.TextureType);
            TextureShape = new ImporterTextureShapeValue(copy.TextureShape);
            WrapMode     = new ImporterWrapModeValue(copy.WrapMode);
            FilterMode   = new ImporterFilterModeValue(copy.FilterMode);
            AnisoLevel   = new ImporterIntValue(copy.AnisoLevel);

            FitSize             = new ImporterBoolValue(copy.FitSize);
            MaxSize             = new ImporterIntValue(copy.MaxSize);
            Compression         = new ImporterCompressionValue(copy.Compression);
            AllowAlphaSplitting = new ImporterBoolValue(copy.AllowAlphaSplitting);
            Format = new ImporterTextureFormatValue(copy.Format);
            UseCrunchCompression = new ImporterBoolValue(copy.UseCrunchCompression);
            CompressionQuality   = new ImporterIntValue(copy.CompressionQuality);
#if UNITY_2017_2_OR_NEWER
            ResizeAlgorithm = new ImporterResizeAlgorithmValue(copy.ResizeAlgorithm);
#endif

            NonPowerOf2       = new ImporterNPOTScaleValue(copy.NonPowerOf2);
            ReadWriteEnabled  = new ImporterBoolValue(copy.ReadWriteEnabled);
            GenerateMipMaps   = new ImporterBoolValue(copy.GenerateMipMaps);
            BorderMipMaps     = new ImporterBoolValue(copy.BorderMipMaps);
            MipMapFiltering   = new ImporterMipFilterValue(copy.MipMapFiltering);
            FadeoutMipMaps    = new ImporterBoolValue(copy.FadeoutMipMaps);
            FadeoutStartValue = new ImporterFloatValue(copy.FadeoutStartValue);
            FadeoutEndValue   = new ImporterFloatValue(copy.FadeoutEndValue);
#if UNITY_2017_1_OR_NEWER
            MipMapsPreserveCover = new ImporterBoolValue(copy.MipMapsPreserveCover);
            AlphaCutoffValue     = new ImporterFloatValue(copy.AlphaCutoffValue);
#endif

            SpriteMode    = new ImporterSpriteModeValue(copy.SpriteMode);
            MeshType      = new ImporterSpriteMeshTypeValue(copy.MeshType);
            PackingTag    = new ImporterStringValue(copy.PackingTag);
            PixelsPerUnit = new ImporterIntValue(copy.PixelsPerUnit);
            ExtrudeEdges  = new ImporterIntValue(copy.ExtrudeEdges);
            Pivot         = new ImporterSpritePivotValue(copy.Pivot);

            sRGB                = new ImporterBoolValue(copy.sRGB);
            AlphaSource         = new ImporterAlphaSourceValue(copy.AlphaSource);
            AlphaIsTransparency = new ImporterBoolValue(copy.AlphaIsTransparency);

            CreateFromGrayScale = new ImporterBoolValue(copy.CreateFromGrayScale);

            LightType = new ImporterLightTypeValue(copy.LightType);
        }