animate

open fun animate(repeat: Boolean): ObjectAnimator

Constructs and returns an ObjectAnimator for all ModelAnimation of this object.

Don't forget to call start

Return

The constructed ObjectAnimator

Parameters

repeat

repeat/loop the animation

See also


open fun animate(animationNames: Array<String>): ObjectAnimator

Constructs and returns an ObjectAnimator for targeted ModelAnimation with a given name of this object. Don't forget to call start

Return

The constructed ObjectAnimator

Parameters

animationNames

The string names of the animations. This name should correspond to the one defined and exported in the model. Typically the action name defined in the 3D creation software. getName

See also


open fun animate(animationIndexes: Array<Int>): ObjectAnimator

Constructs and returns an ObjectAnimator for targeted ModelAnimation with a a given index of this object. Don't forget to call start

Return

The constructed ObjectAnimator

Parameters

animationIndexes

Zero-based indexes for the animations of interest.

See also


open fun animate(animations: Array<ModelAnimation>): ObjectAnimator

Constructs and returns an ObjectAnimator for a targeted ModelAnimation of this object. The setAutoCancel(true) won't work for new call with different animations.This method applies by default this to the returned ObjectAnimator :

  • The duration value to the max getDuration in order to match the original animation speed.
  • The interpolator to LinearInterpolator in order to match the natural animation interpolation.
Don't forget to call start

Return

The constructed ObjectAnimator

Parameters

animations

The animations of interest

See also