diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-08-20 23:40:50 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-08-20 23:40:50 -0400 |
| commit | 3af4c218c0e70167db23a6303d2af30aff37d2fe (patch) | |
| tree | 927f29edcf54ab562f40f3d1c6cb69287c7f5980 /Library/PackageCache/com.unity.timeline@1.2.13/Runtime/Events/Marker.cs | |
| parent | b6daed0af784f4e9bc13329dd87c671b06ee1c65 (diff) | |
| download | Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.gz Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.bz2 Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.zip | |
Removed a bunch of stuff; Changes
Diffstat (limited to 'Library/PackageCache/com.unity.timeline@1.2.13/Runtime/Events/Marker.cs')
| -rw-r--r-- | Library/PackageCache/com.unity.timeline@1.2.13/Runtime/Events/Marker.cs | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/Library/PackageCache/com.unity.timeline@1.2.13/Runtime/Events/Marker.cs b/Library/PackageCache/com.unity.timeline@1.2.13/Runtime/Events/Marker.cs deleted file mode 100644 index 2f12cd7..0000000 --- a/Library/PackageCache/com.unity.timeline@1.2.13/Runtime/Events/Marker.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; - -namespace UnityEngine.Timeline -{ - /// <summary> - /// Use Marker as a base class when creating a custom marker. - /// </summary> - /// <remarks> - /// A marker is a point in time. - /// </remarks> - public abstract class Marker : ScriptableObject, IMarker - { - [SerializeField, TimeField, Tooltip("Time for the marker")] double m_Time; - - /// <inheritdoc/> - public TrackAsset parent { get; private set; } - - /// <inheritdoc/> - /// <remarks> - /// The marker time cannot be negative. - /// </remarks> - public double time - { - get { return m_Time; } - set { m_Time = Math.Max(value, 0); } - } - - void IMarker.Initialize(TrackAsset parentTrack) - { - // We only really want to update the parent when the object is first deserialized - // If not a cloned track would "steal" the source's markers - if (parent == null) - { - parent = parentTrack; - try - { - OnInitialize(parentTrack); - } - catch (Exception e) - { - Debug.LogError(e.Message, this); - } - } - } - - /// <summary> - /// Override this method to receive a callback when the marker is initialized. - /// </summary> - public virtual void OnInitialize(TrackAsset aPent) - { - } - } -} |
