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, IPropertyPreview, ISerializationCallbackReceiver
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 |
---|---|
Activation |
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 |
---|---|---|
Playable |
graph | The graph to inject playables into |
Game |
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 |
---|---|---|
Playable |
director | The PlayableDirector invoking the preview |
IProperty |
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 |
---|---|---|
Timeline |
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.