using System;
using UnityEngine;
namespace UnityEngine.Timeline
{
public partial class TimelineAsset
{
///
/// Enum to specify the type of a track. This enum is obsolete.
///
[Obsolete("MediaType has been deprecated. It is no longer required, and will be removed in a future release.", false)]
public enum MediaType
{
///
/// Specifies that a track is used for animation.
/// is obsolete.
///
Animation,
///
/// Specifies that a track is used for audio.
/// is obsolete.
///
Audio,
///
/// Specifies that a track is used for a texture.
/// is obsolete.
///
Texture = 2,
///
/// Specifies that a track is used for video.
/// is obsolete.
///
[Obsolete("Use Texture MediaType instead. (UnityUpgradable) -> UnityEngine.Timeline.TimelineAsset/MediaType.Texture", false)]
Video = 2,
///
/// Specifies that a track is used for scripting.
/// is obsolete.
///
Script,
///
/// Specifies that a track is used for multiple media types.
/// is obsolete.
///
Hybrid,
///
/// Specifies that a track is used for a group.
/// is obsolete.
///
Group
}
}
///
/// TrackMediaType defines the type of a track. This attribute is obsolete; it will have no effect.
///
[AttributeUsage(AttributeTargets.Class)]
[Obsolete("TrackMediaType has been deprecated. It is no longer required, and will be removed in a future release.", false)]
public class TrackMediaType : Attribute // Defines the type of a track
{
///
/// MediaType of a track.
/// is obsolete; it will have no effect.
///
public readonly TimelineAsset.MediaType m_MediaType;
///
/// Constructs a MediaType attribute.
/// is obsolete; it will have no effect.
///
///
public TrackMediaType(TimelineAsset.MediaType mt)
{
m_MediaType = mt;
}
}
}