//---------------------------------------------------------------------------------------------------------------------- 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; }
//---------------------------------------------------------------------------------------------------------------------- internal MeshSyncPlayerConfig(MeshSyncPlayerConfig other) { //Sync Settings SyncVisibility = other.SyncVisibility; SyncTransform = other.SyncTransform; SyncCameras = other.SyncCameras; SyncLights = other.SyncLights; SyncMeshes = other.SyncMeshes; UpdateMeshColliders = other.UpdateMeshColliders; SyncMaterials = other.SyncMaterials; FindMaterialFromAssets = other.FindMaterialFromAssets; //Import Settings 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; m_animationTweakSettings = new AnimationTweakSettings(other.GetAnimationTweakSettings()); }
//---------------------------------------------------------------------------------------------------------------------- //Constructor private MeshSyncRuntimeSettings() { m_defaultPlayerConfigs = new MeshSyncPlayerConfig[(int) MeshSyncPlayerType.NUM_TYPES]; MeshSyncPlayerConfig config = new MeshSyncPlayerConfig(); m_defaultPlayerConfigs[(int) MeshSyncPlayerType.SERVER] = config; config = new MeshSyncPlayerConfig { UpdateMeshColliders = false, FindMaterialFromAssets = false, ProgressiveDisplay = false, }; m_defaultPlayerConfigs[(int) MeshSyncPlayerType.CACHE_PLAYER] = config; }
internal SceneCachePlayerConfig(MeshSyncPlayerConfig meshSyncPlayerConfig) : base(meshSyncPlayerConfig) { }