//---------------------------------------------------------------------------------------------------------------------- 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()); }
//---------------------------------------------------------------------------------------------------------------------- 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; m_animationTweakSettings = new AnimationTweakSettings(other.GetAnimationTweakSettings()); }
//---------------------------------------------------------------------------------------------------------------------- internal AnimationTweakSettings(AnimationTweakSettings other) { TimeScale = other.TimeScale; TimeOffset = other.TimeOffset; DropStep = other.DropStep; ReductionThreshold = other.ReductionThreshold; EraseFlatCurves = other.EraseFlatCurves; }
internal MeshSyncPlayerConfig() { m_animationTweakSettings = new AnimationTweakSettings(); }
internal MeshSyncPlayerConfig() { m_animationTweakSettings = new AnimationTweakSettings(); InitComponentSyncSettings(); }