Play Animation

Animation
Both Server and Client
Both Mobile and PC

The target plays the animation in the specified state

Declaration

func PlayAnimation(target entity<AnimationControllerAttachable>, state string, playSpeed float, loopType LoopType)
go

Parameters

Input

Name Type Description
Target AnimationControllerAble The entity component that plays the animation. Can be mounted with an animation controller
State String The specified state of the animation controller
Play Speed Float Animation playback speed scaling
Loop Type AnimationOverrideLoopType Loop type, you can keep the original logic of the animation, play it only once or repeat