Search
Animation Constructor (IAnimationItem, AnimationOptions, UpdateCallback, CustomFunctionCallback)
See Also
 





Initializes a new instance of the Animation class.

Namespace: MindFusion.Animations
Assembly: MindFusion.Common

 Syntax

C#  Copy Code

public Animation (
    IAnimationItem item,
    AnimationOptions options,
    UpdateCallback onUpdateCallback,
    CustomFunctionCallback onCustomFunctionCallback
)

Visual Basic  Copy Code

Public New ( _
    item As IAnimationItem, _
    options As AnimationOptions, _
    onUpdateCallback As UpdateCallback, _
    onCustomFunctionCallback As CustomFunctionCallback _
)

 Parameters

item

The item to animate.

options

An object used to specify various property values for the animation.

onUpdateCallback

A callback function called on every animation tick.

onCustomFunctionCallback

A callback function called when the animation type is set to Custom.

 See Also