Timeline.deprecated.cs
3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
using System;
using UnityEngine;
namespace UnityEngine.Timeline
{
public partial class TimelineAsset
{
/// <summary>
/// Enum to specify the type of a track. This enum is obsolete.
/// </summary>
[Obsolete("MediaType has been deprecated. It is no longer required, and will be removed in a future release.", false)]
public enum MediaType
{
/// <summary>
/// Specifies that a track is used for animation.
/// <see cref="UnityEngine.Timeline.TimelineAsset.MediaType"/> is obsolete.
/// </summary>
Animation,
/// <summary>
/// Specifies that a track is used for audio.
/// <see cref="UnityEngine.Timeline.TimelineAsset.MediaType"/> is obsolete.
/// </summary>
Audio,
/// <summary>
/// Specifies that a track is used for a texture.
/// <see cref="UnityEngine.Timeline.TimelineAsset.MediaType"/> is obsolete.
/// </summary>
Texture = 2,
/// <summary>
/// Specifies that a track is used for video.
/// <see cref="UnityEngine.Timeline.TimelineAsset.MediaType"/> is obsolete.
/// </summary>
[Obsolete("Use Texture MediaType instead. (UnityUpgradable) -> UnityEngine.Timeline.TimelineAsset/MediaType.Texture", false)]
Video = 2,
/// <summary>
/// Specifies that a track is used for scripting.
/// <see cref="UnityEngine.Timeline.TimelineAsset.MediaType"/> is obsolete.
/// </summary>
Script,
/// <summary>
/// Specifies that a track is used for multiple media types.
/// <see cref="UnityEngine.Timeline.TimelineAsset.MediaType"/> is obsolete.
/// </summary>
Hybrid,
/// <summary>
/// Specifies that a track is used for a group.
/// <see cref="UnityEngine.Timeline.TimelineAsset.MediaType"/> is obsolete.
/// </summary>
Group
}
}
/// <summary>
/// TrackMediaType defines the type of a track. This attribute is obsolete; it will have no effect.
/// </summary>
[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
{
/// <summary>
/// MediaType of a track.
/// <see cref="UnityEngine.Timeline.TrackMediaType"/> is obsolete; it will have no effect.
/// </summary>
public readonly TimelineAsset.MediaType m_MediaType;
/// <summary>
/// Constructs a MediaType attribute.
/// <see cref="UnityEngine.Timeline.TrackMediaType"/> is obsolete; it will have no effect.
/// </summary>
/// <param name="mt"><inheritdoc cref="m_MediaType"/></param>
public TrackMediaType(TimelineAsset.MediaType mt)
{
m_MediaType = mt;
}
}
}