Class AnimationEventMedia
The timeline media for AnimEvent and AnimContinuousEvent.
Implements
System.IComparable
Namespace: FlaxEditor.GUI.Timeline.Tracks
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class AnimationEventMedia : Media, IComparable, IDrawable
Constructors
AnimationEventMedia()
Initializes a new instance of the AnimationEventMedia class.
Declaration
public AnimationEventMedia()
Fields
Instance
IsContinuous
True if event is continuous (with duration), not a single frame.
Declaration
public bool IsContinuous
Field Value
System.Boolean
|
Type
The event type.
Declaration
public ScriptType Type
Field Value
FlaxEditor.Scripting.ScriptType
|
Methods
ContainsPoint(ref Float2, Boolean)
Checks if this control contains given point in local Control Space.
Declaration
public override bool ContainsPoint(ref Float2 location, bool precise = false)
Parameters
Float2
location
Point location in Control Space to check |
System.Boolean
precise
True if perform precise intersection test against the control content (eg. with hit mask or transparency threshold). Otherwise, only simple bounds-check will be performed. |
Returns
System.Boolean
True if point is inside control's area, otherwise false. |
Overrides
Draw()
Init(ScriptType)
Initializes track for the specified type.
Declaration
public void Init(ScriptType type)
Parameters
FlaxEditor.Scripting.ScriptType
type
The type. |
OnDestroy()
Method called when managed instance should be destroyed
Declaration
public override void OnDestroy()
Overrides
OnDurationFramesChanged()
Called when media duration in frames gets changed.
Declaration
protected override void OnDurationFramesChanged()