Class ConductorTrack
The timeline track that can proxy the sub-tracks keyframes for easier batched editing.
Inheritance
Namespace: FlaxEditor.GUI.Timeline.Tracks
Assembly: FlaxEngine.CSharp.dll
Syntax
public abstract class ConductorTrack : Track, IComparable, IDrawable, IKeyframesEditorContext
Constructors
ConductorTrack(ref TrackCreateOptions, Boolean)
Initializes a new instance of the ConductorTrack class.
Declaration
protected ConductorTrack(ref TrackCreateOptions options, bool useProxyKeyframes = true)
Parameters
|
FlaxEditor.GUI.Timeline.TrackCreateOptions
options
The track initial options. |
|
System.Boolean
useProxyKeyframes
True if show sub-tracks keyframes as a proxy on this track, otherwise false. |
Fields
Proxy
The batched keyframes editor for all sub-tracks.
Declaration
protected KeyframesEditor Proxy
Field Value
|
FlaxEditor.GUI.KeyframesEditor
|
Methods
OnDestroy()
Declaration
public override void OnDestroy()
Overrides
OnExpandedChanged()
Declaration
protected override void OnExpandedChanged()
Overrides
OnKeyframesCopy(IKeyframesEditor, Nullable<Single>, StringBuilder)
Called when keyframes selection should be copied.
Declaration
public void OnKeyframesCopy(IKeyframesEditor editor, Nullable<float> timeOffset, StringBuilder data)
Parameters
|
FlaxEditor.GUI.IKeyframesEditor
editor
The source editor. |
|
System.Nullable<System.Single>
timeOffset
The additional time offset to apply to the copied keyframes (optional). |
|
System.Text.StringBuilder
data
The result copy data text stream. |
Implements
OnKeyframesDelete(IKeyframesEditor)
Called when keyframes selection should be deleted for all editors.
Declaration
public void OnKeyframesDelete(IKeyframesEditor editor)
Parameters
|
FlaxEditor.GUI.IKeyframesEditor
editor
The source editor. |
Implements
OnKeyframesDeselect(IKeyframesEditor)
Called when keyframes selection should be cleared for all editors.
Declaration
public void OnKeyframesDeselect(IKeyframesEditor editor)
Parameters
|
FlaxEditor.GUI.IKeyframesEditor
editor
The source editor. |
Implements
OnKeyframesGet(Action<String, Single, Object>)
Called when collecting keyframes from the context.
Declaration
public void OnKeyframesGet(Action<string, float, object> get)
Parameters
|
System.Action<System.String, System.Single, System.Object>
get
The getter function to call for all keyframes. Args are: track name, keyframe time, keyframe object. |
Implements
OnKeyframesMove(IKeyframesEditor, ContainerControl, Float2, Boolean, Boolean)
Called when keyframes selection should be moved.
Declaration
public void OnKeyframesMove(IKeyframesEditor editor, ContainerControl control, Float2 location, bool start, bool end)
Parameters
|
FlaxEditor.GUI.IKeyframesEditor
editor
The source editor. |
|
ContainerControl
control
The source movement control. |
|
Float2
location
The source movement location (in source control local space). |
|
System.Boolean
start
The movement start flag. |
|
System.Boolean
end
The movement end flag. |
Implements
OnKeyframesPaste(IKeyframesEditor, Nullable<Single>, String[], ref Int32)
Called when keyframes should be pasted (from clipboard).
Declaration
public void OnKeyframesPaste(IKeyframesEditor editor, Nullable<float> timeOffset, string[] datas, ref int index)
Parameters
|
FlaxEditor.GUI.IKeyframesEditor
editor
The source editor. |
|
System.Nullable<System.Single>
timeOffset
The additional time offset to apply to the pasted keyframes (optional). |
|
System.String[]
datas
The pasted data text. |
|
System.Int32
index
The counter for the current data index. Set to -1 until the calling editor starts paste operation. |
Implements
OnKeyframesSelection(IKeyframesEditor, ContainerControl, Rectangle)
Called when keyframes selection rectangle gets updated.
Declaration
public void OnKeyframesSelection(IKeyframesEditor editor, ContainerControl control, Rectangle selection)
Parameters
|
FlaxEditor.GUI.IKeyframesEditor
editor
The source editor. |
|
ContainerControl
control
The source selection control. |
|
Rectangle
selection
The source selection rectangle (in source control local space). |
Implements
OnKeyframesSelectionCount()
Called to calculate the total amount of selected keyframes in the editor.
Declaration
public int OnKeyframesSelectionCount()
Returns
|
System.Int32
The selected keyframes amount. |
Implements
OnKeyframesSet(List<KeyValuePair<Single, Object>>)
Called when setting keyframes data (opposite to OnKeyframesGet(Action<String, Single, Object>)).
Declaration
public void OnKeyframesSet(List<KeyValuePair<float, object>> keyframes)
Parameters
|
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.Single, System.Object>>
keyframes
The list of keyframes, null for empty list. Keyframe data is: time and keyframe object. |
Implements
OnTimelineArrange()
Declaration
public override void OnTimelineArrange()
Overrides
OnTimelineChanged(Timeline)
Declaration
public override void OnTimelineChanged(Timeline timeline)
Parameters
|
FlaxEditor.GUI.Timeline.Timeline
timeline
|
Overrides
OnTimelineFpsChanged(Single, Single)
Declaration
public override void OnTimelineFpsChanged(float before, float after)
Parameters
|
System.Single
before
|
|
System.Single
after
|
Overrides
OnTimelineZoomChanged()
Declaration
public override void OnTimelineZoomChanged()
Overrides
OnVisibleChanged()
Called when visible state gets changed.
Declaration
protected override void OnVisibleChanged()