Class AnimationTimeline
The timeline editor for animation asset.
Namespace: FlaxEditor.GUI.Timeline
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class AnimationTimeline : Timeline, IComparable, IDrawable, IKeyframesEditorContext
Constructors
AnimationTimeline(Undo)
Initializes a new instance of the AnimationTimeline class.
Declaration
public AnimationTimeline(Undo undo)
Parameters
Undo
undo
The undo/redo to use for the history actions recording. Optional, can be null to disable undo support. |
Properties
Preview
Gets or sets the animated preview used for the animation playback.
Declaration
public AnimationPreview Preview { get; set; }
Property Value
AnimationPreview
|
Methods
Load(Animation)
Loads the timeline from the specified Animation asset.
Declaration
public void Load(Animation asset)
Parameters
Animation
asset
The asset. |
OnPause()
Declaration
public override void OnPause()
Overrides
FlaxEditor.GUI.Timeline.Timeline.OnPause()
OnPlay()
Declaration
public override void OnPlay()
Overrides
FlaxEditor.GUI.Timeline.Timeline.OnPlay()
OnSeek(Int32)
Declaration
public override void OnSeek(int frame)
Parameters
System.Int32
frame
|
Overrides
FlaxEditor.GUI.Timeline.Timeline.OnSeek(System.Int32)
OnStop()
Declaration
public override void OnStop()
Overrides
FlaxEditor.GUI.Timeline.Timeline.OnStop()
Save(Animation)
Saves the timeline data to the Animation asset.
Declaration
public void Save(Animation asset)
Parameters
Animation
asset
The asset. |
SetupDragDrop()
Declaration
protected override void SetupDragDrop()
Overrides
FlaxEditor.GUI.Timeline.Timeline.SetupDragDrop()
Update(Single)
Declaration
public override void Update(float deltaTime)
Parameters
System.Single
deltaTime
|
Overrides
FlaxEditor.GUI.Timeline.Timeline.Update(System.Single)
Events
PreviewChanged
Occurs when the selected animated model preview gets changed.
Declaration
public event Action PreviewChanged
Event Type
System.Action
|
Extension Methods
See Also
FlaxEditor.GUI.Timeline.Timeline