Class Marker
Use Marker as a base class when creating a custom marker.
Implements
Inherited Members
Namespace: UnityEngine.Timeline
Assembly: Unity.Timeline.dll
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 |
time
The time set for the marker, in seconds.
Declaration
public double time { get; set; }
Property Value
Type | Description |
---|---|
double |
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. |