public void OnAfterDeserialize() { if (m_version < (int)SISPlayableAssetVersion.WATCHED_FILE_0_4) { if (null != m_imageFileNames && m_imageFileNames.Count > 0) { m_imageFiles = WatchedFileInfo.CreateList(m_folder, m_imageFileNames); m_imageFileNames.Clear(); } //Use the folder defined in older version if set if (string.IsNullOrEmpty(m_folder) && !string.IsNullOrEmpty(Folder)) { m_folder = Folder; } } m_version = CUR_SIS_PLAYABLE_ASSET_VERSION; }
public void OnAfterDeserialize() { if (null == m_editorConfig) { m_editorConfig = new RenderCachePlayableAssetEditorConfig(); } if (m_version < (int)RenderCachePlayableAssetVersion.WATCHED_FILE_0_4) { if (null != m_imageFileNames && m_imageFileNames.Count > 0) { m_imageFiles = WatchedFileInfo.CreateList(m_folder, m_imageFileNames); m_imageFileNames.Clear(); } } if (m_version < (int)RenderCachePlayableAssetVersion.CONFIG_0_7) { m_editorConfig.SetUpdateBGColor(m_updateBGColor); } m_version = CUR_RENDER_CACHE_PLAYABLE_ASSET_VERSION; }