VisualMoveToEventsEnabled Property |
If True, then MoveTo, TurnTo will issue events that indicate when the visual has started accelerating, cruising, decelerating and has stopped.
<p>
When enabled, the events are issued as OnAnimatorEvent. <p>An example function that will handle these events is:
<pre>
function Box_OnAnimatorEvent( sender : Visual, args : AnimatorEventArgs )
{
switch (args.EventType) {
case AnimatorEventType.Accelerate:
print("Accelerating");
break;
case AnimatorEventType.Cruise:
print("Cruising");
break;
case AnimatorEventType.Decelerate:
print("Decelerating");
break;
case AnimatorEventType.Stop:
print("Stopped");
break;
}
}
</pre>
Namespace:
Demo3D.Visuals
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntaxpublic bool MoveToEventsEnabled { get; set; }Property Value
Type:
Boolean
See Also