暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

TimelineUpgrade.cs 503B

123456789101112131415161718192021
  1. namespace UnityEngine.Timeline
  2. {
  3. partial class TimelineAsset
  4. {
  5. enum Versions
  6. {
  7. Initial = 0
  8. }
  9. const int k_LatestVersion = (int)Versions.Initial;
  10. [SerializeField, HideInInspector] int m_Version;
  11. //fields that are used for upgrading should be put here, ideally as read-only
  12. void UpgradeToLatestVersion()
  13. { }
  14. //upgrade code should go into this class
  15. static class TimelineAssetUpgrade
  16. { }
  17. }
  18. }