setAction

fun setAction(skeleton: ZSkeleton, action: ZSkeletalAction)(source)

Sets the skeleton and clip to play, resets playback time to zero, and applies the pose at time 0 so the skeleton matches the start of the clip immediately.

Parameters

skeleton

Target bone hierarchy for this player.

action

The skeletal action (clip) to play.