Class Marker
Use Marker as a base class when creating a custom marker.
Inherited Members
Namespace: UnityEngine.Timeline
Syntax
public abstract class Marker : ScriptableObject, IMarker
Remarks
A marker is a point in time.
Properties
parent
The track that contains the marker.
Declaration
public TrackAsset parent { get; }
Property Value
Type | Description |
---|---|
TrackAsset |
Implements
time
The time set for the marker, in seconds.
Declaration
public double time { get; set; }
Property Value
Type | Description |
---|---|
Double |
Implements
Remarks
The marker time cannot be negative.
Methods
OnInitialize(TrackAsset)
Override this method to receive a callback when the marker is initialized.
Declaration
public virtual void OnInitialize(TrackAsset aPent)
Parameters
Type | Name | Description |
---|---|---|
TrackAsset | aPent | The track that contains the marker. |
Explicit Interface Implementations
IMarker.Initialize(TrackAsset)
This method is called when the marker is initialized.
Declaration
void IMarker.Initialize(TrackAsset parentTrack)
Parameters
Type | Name | Description |
---|---|---|
TrackAsset | parentTrack |
Implements
Remarks
This method is called after each deserialization of the Timeline Asset.