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 CustomAudioImporterSettingValue(CustomAudioImporterSettingValue copy)
        {
            ForceToMono      = new ImporterBoolValue(copy.ForceToMono);
            LoadInBackGround = new ImporterBoolValue(copy.LoadInBackGround);
#if UNITY_2017_1_OR_NEWER
            Ambisonic = new ImporterBoolValue(copy.Ambisonic);
#endif

            LoadType          = new ImporterAudioClipValue(copy.LoadType);
            PreloadAudioData  = new ImporterBoolValue(copy.PreloadAudioData);
            CompressionFormat = new ImporterAudioCompressionValue(copy.CompressionFormat);
            Quality           = new ImporterFloatValue(copy.Quality);
            SampleRateSetting = new ImporterSampleRateValue(copy.SampleRateSetting);
            SampleRate        = new ImporterIntValue(copy.SampleRate);
        }
        public CustomAudioImporterSettingValue()
        {
            ForceToMono      = new ImporterBoolValue();
            LoadInBackGround = new ImporterBoolValue();
#if UNITY_2017_1_OR_NEWER
            Ambisonic = new ImporterBoolValue();
#endif

            LoadType          = new ImporterAudioClipValue();
            PreloadAudioData  = new ImporterBoolValue();
            CompressionFormat = new ImporterAudioCompressionValue();
            Quality           = new ImporterFloatValue();
            SampleRateSetting = new ImporterSampleRateValue();
            SampleRate        = new ImporterIntValue();
            SampleRate.Value  = 44100;
        }
        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);
        }
Пример #5
0
        public CustomModelImporterSettingValue(CustomModelImporterSettingValue copy)
        {
            ScaleFactor = new ImporterIntValue(copy.ScaleFactor);
#if UNITY_2017_1_OR_NEWER
            UseFileScale = new ImporterBoolValue(copy.UseFileScale);
#endif
            MeshCompression = new ImporterMeshCompressionValue(copy.MeshCompression);

            ReadWriteEnabled  = new ImporterBoolValue(copy.ReadWriteEnabled);
            OptimizeMesh      = new ImporterBoolValue(copy.OptimizeMesh);
            ImportBlendShapes = new ImporterBoolValue(copy.ImportBlendShapes);
            GenerateColliders = new ImporterBoolValue(copy.GenerateColliders);
            KeepQuads         = new ImporterBoolValue(copy.KeepQuads);
#if UNITY_2017_3_OR_NEWER
            IndexFormat = new ImporterIndexFormatValue(copy.IndexFormat);
#endif
#if UNITY_5_6_OR_NEWER
            WeldVertics = new ImporterBoolValue(copy.WeldVertics);
#endif
#if UNITY_2017_1_OR_NEWER
            ImportVisibility = new ImporterBoolValue(copy.ImportVisibility);
            ImportCameras    = new ImporterBoolValue(copy.ImportCameras);
            ImportLights     = new ImporterBoolValue(copy.ImportLights);
#endif
#if UNITY_2017_3_OR_NEWER
            PreserverHierarchy = new ImporterBoolValue(copy.PreserverHierarchy);
#endif
            SwapUVs             = new ImporterBoolValue(copy.SwapUVs);
            GenerateLightMapUVs = new ImporterBoolValue(copy.GenerateLightMapUVs);

            HardAngle  = new ImporterIntValue(copy.HardAngle);
            PackMargin = new ImporterIntValue(copy.PackMargin);
            AngleError = new ImporterIntValue(copy.AngleError);
            AreaError  = new ImporterIntValue(copy.AreaError);

            Normals = new ImporterImportNormalsValue(copy.Normals);
#if UNITY_2017_1_OR_NEWER
            NormalsMode = new ImporterNormalsModeValue(copy.NormalsMode);
#endif
            SmoothingAngle = new ImporterIntValue(copy.SmoothingAngle);
            Tangents       = new ImporterImportTangensValue(copy.Tangents);

            ImportMaterials = new ImporterBoolValue(copy.ImportMaterials);
#if UNITY_2017_3_OR_NEWER
            MaterialLocation = new ImporterMaterialLocationValue(copy.MaterialLocation);
#endif
            MaterialNaming = new ImporterMaterialNamingValue(copy.MaterialNaming);
            MaterialSearch = new ImporterMaterialSearchValue(copy.MaterialSearch);

            AnimationType      = new ImporterAnimationTypeValue(copy.AnimationType);
            OptimizeGameObject = new ImporterBoolValue(copy.OptimizeGameObject);

            ImportAnimation = new ImporterBoolValue(copy.ImportAnimation);
            BakeAnimations  = new ImporterBoolValue(copy.BakeAnimations);
            ResampleCurves  = new ImporterBoolValue(copy.ResampleCurves);
            AnimCompression = new ImporterAnimCompressionValue(copy.AnimCompression);
            RotaionError    = new ImporterFloatValue(copy.RotaionError);
            PositionError   = new ImporterFloatValue(copy.PositionError);
            ScaleError      = new ImporterFloatValue(copy.ScaleError);
#if UNITY_2017_2_OR_NEWER
            AnimatedCustomProperties = new ImporterBoolValue(copy.AnimatedCustomProperties);
#endif

            LoopTime = new ImporterBoolValue(copy.LoopTime);
        }
Пример #6
0
        public CustomModelImporterSettingValue()
        {
            ScaleFactor       = new ImporterIntValue();
            ScaleFactor.Value = 1;
#if UNITY_2017_1_OR_NEWER
            UseFileScale = new ImporterBoolValue();
#endif
            MeshCompression       = new ImporterMeshCompressionValue();
            MeshCompression.Value = ModelImporterMeshCompression.Medium;

            ReadWriteEnabled  = new ImporterBoolValue();
            OptimizeMesh      = new ImporterBoolValue();
            ImportBlendShapes = new ImporterBoolValue();
            GenerateColliders = new ImporterBoolValue();
            KeepQuads         = new ImporterBoolValue();
#if UNITY_2017_3_OR_NEWER
            IndexFormat = new ImporterIndexFormatValue();
#endif
#if UNITY_5_6_OR_NEWER
            WeldVertics = new ImporterBoolValue();
#endif
#if UNITY_2017_1_OR_NEWER
            ImportVisibility = new ImporterBoolValue();
            ImportCameras    = new ImporterBoolValue();
            ImportLights     = new ImporterBoolValue();
#endif
#if UNITY_2017_3_OR_NEWER
            PreserverHierarchy = new ImporterBoolValue();
#endif
            SwapUVs             = new ImporterBoolValue();
            GenerateLightMapUVs = new ImporterBoolValue();

            HardAngle        = new ImporterIntValue();
            HardAngle.Value  = 88;
            PackMargin       = new ImporterIntValue();
            PackMargin.Value = 4;
            AngleError       = new ImporterIntValue();
            AngleError.Value = 8;
            AreaError        = new ImporterIntValue();
            AreaError.Value  = 15;

            Normals       = new ImporterImportNormalsValue();
            Normals.Value = ModelImporterNormals.Import;
#if UNITY_2017_1_OR_NEWER
            NormalsMode = new ImporterNormalsModeValue();
#endif
            SmoothingAngle       = new ImporterIntValue();
            SmoothingAngle.Value = 60;
            Tangents             = new ImporterImportTangensValue();
            Tangents.Value       = ModelImporterTangents.None;

            ImportMaterials       = new ImporterBoolValue();
            ImportMaterials.Value = true;
#if UNITY_2017_3_OR_NEWER
            MaterialLocation = new ImporterMaterialLocationValue();
#endif
            MaterialNaming = new ImporterMaterialNamingValue();
            MaterialSearch = new ImporterMaterialSearchValue();

            AnimationType       = new ImporterAnimationTypeValue();
            AnimationType.Value = ModelImporterAnimationType.Generic;
            OptimizeGameObject  = new ImporterBoolValue();

            ImportAnimation       = new ImporterBoolValue();
            ImportAnimation.Value = true;
            BakeAnimations        = new ImporterBoolValue();
            ResampleCurves        = new ImporterBoolValue();
            AnimCompression       = new ImporterAnimCompressionValue();
            AnimCompression.Value = ModelImporterAnimationCompression.Optimal;
            RotaionError          = new ImporterFloatValue();
            RotaionError.Value    = 0.5f;
            PositionError         = new ImporterFloatValue();
            PositionError.Value   = 0.5f;
            ScaleError            = new ImporterFloatValue();
            ScaleError.Value      = 0.5f;
#if UNITY_2017_2_OR_NEWER
            AnimatedCustomProperties = new ImporterBoolValue();
#endif

            LoopTime = new ImporterBoolValue();
        }