playAnimation

@MainThread
fun playAnimation(animationResource: AnimationResource, config: AnimationPlayConfig = AnimationPlayConfig()): AnimationPlaybackController

Uses the current entity to play an animation resource.

Return

The AnimationPlaybackController.

Parameters

animationResource

The animation resource to play.

config

The animation play configuration.