Class StoryboardTrack
The StoryboardTrack supports StoryboardPlayableAsset in order to create a Storyboard in Timeline. This allows users to iterate on their cinematic timing and have a base for blocking in Unity.
Inherited Members
Namespace: UnityEngine .Sequences.Timeline
Assembly: Unity.Sequences.dll
Syntax
[Serializable]
[TrackClipType(typeof(StoryboardPlayableAsset))]
[TrackColor(0.92941177, 0.49411765, 0.007843138)]
public class StoryboardTrack : TrackAsset, IPlayableAsset, ISerializationCallbackReceiver, IPropertyPreview
Fields
defaultFrameDuration
This is the default duration of each newly created clip on the Storyboard track. By default it is set to 3 seconds, which means that every new Storyboard image added via a new clip on the track will last for 3 seconds.
Declaration
[Tooltip("Clips created in this track will be created with this default duration.Changing this value with not change the length of pre-existing Clips")]
[SerializeField]
public double defaultFrameDuration
Field Value
Type | Description |
---|---|
double |
Remarks
Changing this value does not affect the duration of existing clips.
sortOrder
The StoryboardTrack uses Canvas to display the different Storyboard frames. Use this parameter to
control the sorting
Declaration
[Tooltip("sorting order of the Storyboard Canvas")]
[SerializeField]
public int sortOrder
Field Value
Type | Description |
---|---|
int |
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 node representing the mixer. |
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 |