Class SceneActivationTrack
A track you can use to control the active state of a Scene.
Inherited Members
Namespace: UnityEngine.Sequences.Timeline
Assembly: Unity.Sequences.dll
Syntax
[Serializable]
[TrackClipType(typeof(SceneActivationPlayableAsset))]
[TrackColor(0.55, 0.5, 0.14)]
public class SceneActivationTrack : TrackAsset, IPlayableAsset, ISerializationCallbackReceiver, IPropertyPreview
Fields
scene
A reference to the Scene to control through this track.
Declaration
public SceneReference scene
Field Value
| Type | Description |
|---|---|
| SceneReference |
Methods
CreateTrackMixer(PlayableGraph, GameObject, int)
Creates a mixer 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 that represents the mixer. |
Overrides
GatherProperties(PlayableDirector, IPropertyCollector)
The Timeline Editor calls this method to gather properties that require a preview.
Declaration
public override void GatherProperties(PlayableDirector director, IPropertyCollector driver)
Parameters
| Type | Name | Description |
|---|---|---|
| PlayableDirector | director | The PlayableDirector that invokes the preview. |
| IPropertyCollector | driver | The PropertyCollector used to gather previewable properties. |