TimelineUpgrade.cs 501 B

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. }