Skip to main content

BodyAnimation

This component is used to receive gesture events and/or emotion events from the server. It plays animations on that character.

Properties

PropertyTypeDescription
AnimatorAnimatorGets or sets the animator this component is attached to
CharacterInworldCharacterGets or sets the character this component uses

API

FunctionReturn TypeDescriptionParameters
HandleMainStatusvoidHandle the main status of the character: Idle, Talking, Walking, etc.status: incoming status
HandleEmotionvoidPlays an animation according to the target emotionSpaffCode: An enum of emotion
HandleGesturevoidPlays the target gesture's animationsgesture: An enum of target gesture