示例#1
0
 internal void ResetDefaultSceneCachePlayerConfig() {
     m_defaultSceneCachePlayerConfig = new SceneCachePlayerConfig() {
         UpdateMeshColliders = false,
         ProgressiveDisplay  = false,
     };            
     
 }
//----------------------------------------------------------------------------------------------------------------------
    private void UpgradeVersionToLatest() {
        m_meshSyncProjectSettingsVersion = ClassVersion;
        if (m_meshSyncProjectSettingsVersion == LATEST_VERSION) {
            return;            
        }

        if (m_meshSyncProjectSettingsVersion < (int) Version.SEPARATE_SCENE_CACHE_PLAYER_CONFIG) {
            if (null!= m_defaultPlayerConfigs && m_defaultPlayerConfigs.Length >= 2) {
                m_defaultServerConfig   = m_defaultPlayerConfigs[0] as MeshSyncServerConfig;
                m_defaultSceneCachePlayerConfig = new SceneCachePlayerConfig(m_defaultPlayerConfigs[1]);
            }
        }

        m_defaultPlayerConfigs = null;
        m_meshSyncProjectSettingsVersion = ClassVersion = LATEST_VERSION;
        Save();
    }
示例#3
0
//----------------------------------------------------------------------------------------------------------------------

        #region Events
#if UNITY_EDITOR
        void Reset()
        {
            MeshSyncProjectSettings projectSettings = MeshSyncProjectSettings.GetOrCreateInstance();

            m_config = new SceneCachePlayerConfig(projectSettings.GetDefaultSceneCachePlayerConfig());
        }