Timeline.deprecated.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using UnityEngine;
  3. using UnityEngine.Playables;
  4. namespace UnityEngine.Timeline
  5. {
  6. public partial class TimelineAsset
  7. {
  8. [Obsolete("MediaType has been deprecated. It is no longer required, and will be removed in a future release.", false)]
  9. public enum MediaType
  10. {
  11. Animation,
  12. Audio,
  13. Texture = 2,
  14. [Obsolete("Use Texture MediaType instead. (UnityUpgradable) -> UnityEngine.Timeline.TimelineAsset/MediaType.Texture", false)] Video = 2,
  15. Script,
  16. Hybrid,
  17. Group
  18. }
  19. }
  20. // Defines the type of a track
  21. [AttributeUsage(AttributeTargets.Class)]
  22. [Obsolete("TrackMediaType has been deprecated. It is no longer required, and will be removed in a future release.", false)]
  23. public class TrackMediaType : Attribute
  24. {
  25. public readonly TimelineAsset.MediaType m_MediaType;
  26. public TrackMediaType(TimelineAsset.MediaType mt)
  27. {
  28. m_MediaType = mt;
  29. }
  30. }
  31. }