Class TrackAsset
A PlayableAsset representing a track inside a timeline.
Inherited Members
Namespace: UnityEngine .Timeline
Assembly: solution.dll
Syntax
[Serializable]
public abstract class TrackAsset : PlayableAsset, IPlayableAsset, IPropertyPreview, ISerializationCallbackReceiver
Remarks
Derive from TrackAsset to implement custom timeline tracks. TrackAsset derived classes support the following attributes:
Hide
Examples
[TrackColor(1, 0, 0)]
[TrackBindingType(typeof(Animator))]
[TrackClipType(typeof(AnimationClip))]
public class CustomAnimationTrack : TrackAsset { }
Fields
Name | Description |
---|---|
m_Clips |
Properties
Name | Description |
---|---|
curves | An animation clip storing animated properties of the attached PlayableAsset |
duration | The length, in seconds, of this track |
end | The end time, in seconds, of this track |
has |
Whether this track contains any TimelineClip. |
has |
Whether this track contains animated properties for the attached PlayableAsset. |
is |
Whether this track is considered empty. |
is |
Returns whether this track is a subtrack |
locked | The local locked state of the track. |
locked |
The locked state of a track. (RO) |
muted | Whether the track is muted or not. |
muted |
The muted state of a track. |
outputs | Returns a description of the PlayableOutputs that will be created by this track. |
parent | The owner of this track. |
start | The start time, in seconds, of this track |
supports |
Indicates if a track accepts markers that implement INotification. |
timeline |
The TimelineAsset that this track belongs to. |
Methods
Name | Description |
---|---|
Calculate |
|
Can |
Whether the track can create a mixer for its own contents. |
Create |
Creates a clip on the track with a playable asset attached, whose derived type is specified by T |
Create |
Creates an AnimationClip to store animated properties for the attached PlayableAsset. |
Create |
Creates a TimelineClip on this track. |
Create |
Creates a marker of the requested type, at a specific time, and adds the marker to the current asset. |
Create |
Creates a marker of the requested type, at a specific time, and adds the marker to the current asset. |
Create |
Overrides PlayableAsset.CreatePlayable(). Not used in Timeline. |
Create |
Constructs a Playable from a TimelineClip. |
Create |
Creates a mixer used to blend playables generated by clips on the track. |
Delete |
Delete a clip from this track. |
Delete |
Removes a marker from the current asset. |
Gather |
Called by the Timeline Editor to gather properties requiring preview. |
Get |
Gets the hash code for an AnimationClip. |
Get |
The list of subtracks or child tracks attached to this track. |
Get |
A list of clips owned by this track |
Get |
Returns the marker at a given position, on the current asset. |
Get |
Returns the number of markers on the current asset. |
Get |
Returns an enumerable list of markers on the current asset. |
On |
Called after a track has been deserialized. |
On |
Called before a track is serialized. |
On |
Called when a clip is created on a track. |