Exemplo n.º 1
0
//----------------------------------------------------------------------------------------------------------------------    

    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());
    }
Exemplo n.º 2
0
//----------------------------------------------------------------------------------------------------------------------    

    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;
    }
Exemplo n.º 4
0
 internal MeshSyncPlayerConfig() {
     m_animationTweakSettings = new AnimationTweakSettings();        
 }
Exemplo n.º 5
0
 internal MeshSyncPlayerConfig() {
     m_animationTweakSettings = new AnimationTweakSettings();
     InitComponentSyncSettings();
 }