Class ActivationTrack
Track that can be used to control the active state of a GameObject.
Inherited Members
Namespace: UnityEngine.Timeline
Assembly: Unity.Timeline.dll
Syntax
[Serializable]
[TrackClipType(typeof(ActivationPlayableAsset))]
[TrackBindingType(typeof(GameObject))]
[ExcludeFromPreset]
public class ActivationTrack : TrackAsset, IPlayableAsset, ISerializationCallbackReceiver, IPropertyPreview
Properties
postPlaybackState
Specifies what state to leave the GameObject in after the Timeline has finished playing.
Declaration
public ActivationTrack.PostPlaybackState postPlaybackState { get; set; }
Property Value
Type | Description |
---|---|
ActivationTrack.PostPlaybackState |
Methods
CreateTrackMixer(PlayableGraph, GameObject, int)
Creates a mixer used to blend playables generated by clips on the track.
Declaration
public override Playable CreateTrackMixer(PlayableGraph graph, GameObject go, int inputCount)
Parameters
Type | Name | Description |
---|---|---|
PlayableGraph | graph | The graph to inject playables into |
GameObject | go | The GameObject that requested the graph. |
int | inputCount | The number of playables from clips that will be inputs to the returned mixer |
Returns
Type | Description |
---|---|
Playable | A handle to the [[Playable]] representing the mixer. |
Overrides
Remarks
Override this method to provide a custom playable for mixing clips on a graph.
GatherProperties(PlayableDirector, IPropertyCollector)
Called by the Timeline Editor to gather properties requiring preview.
Declaration
public override void GatherProperties(PlayableDirector director, IPropertyCollector driver)
Parameters
Type | Name | Description |
---|---|---|
PlayableDirector | director | The PlayableDirector invoking the preview |
IPropertyCollector | driver | PropertyCollector used to gather previewable properties |
Overrides
OnCreateClip(TimelineClip)
Called when a clip is created on a track.
Declaration
protected override void OnCreateClip(TimelineClip clip)
Parameters
Type | Name | Description |
---|---|---|
TimelineClip | clip | The timeline clip added to this track |
Overrides
Remarks
Use this method to set default values on a timeline clip, or it's PlayableAsset.