//---------------------------------------------------------------------------------------------------------------------- internal MeshSyncPlayerConfig(MeshSyncPlayerConfig other) { //Sync Settings SyncVisibility = other.SyncVisibility; SyncTransform = other.SyncTransform; m_componentSyncSettings = new List<ComponentSyncSettings>(); for (int i = 0; i < SYNC_COUNT; ++i) { m_componentSyncSettings.Add(new ComponentSyncSettings(other.m_componentSyncSettings[i])); } SyncMeshes = other.SyncMeshes; UpdateMeshColliders = other.UpdateMeshColliders; //Import Settings m_importerSettings = new ModelImporterSettings(other.m_importerSettings); AnimationInterpolation = other.AnimationInterpolation; KeyframeReduction = other.KeyframeReduction; ReductionThreshold = other.ReductionThreshold; ReductionEraseFlatCurves = other.ReductionEraseFlatCurves; ZUpCorrection = other.ZUpCorrection; //Misc SyncMaterialList = other.SyncMaterialList; ProgressiveDisplay = other.ProgressiveDisplay; Logging = other.Logging; Profiling = other.Profiling; }
private protected override void UpdateMaterialAssetV(MaterialData materialData) { ModelImporterSettings modelImporterSettings = m_config.GetModelImporterSettings(); #if UNITY_EDITOR //Get the settings from the SceneCacheImporter if not set to override if (AssetImporter.GetAtPath(m_sceneCacheFilePath) is IHasModelImporterSettings importer && !m_overrideModelImporterSettings) { modelImporterSettings = importer.GetModelImporterSettings(); } #endif UpdateMaterialAssetByDefault(materialData, modelImporterSettings); }
internal ModelImporterSettings(ModelImporterSettings other) { this.CreateMaterials = other.CreateMaterials; this.MaterialSearchMode = other.MaterialSearchMode; }