Skip to main content

EmotionCanvas

Module: Inworld.RPM. Namespace: Inworld.Sample.RPM. inherited from: DemoCanvas

This is the canvas class used in the sample scene Emotion and Animation

Inspector Variables

VariableDescription
EmotionMapThe EmotionMap used in the canvas.
StatusDropDownThe drop down fields used in listing the emotion status.
ServerEventDropDownThe drop down fields used in listing the server events.

Properties

VariablesDescription
EmotionGet the current spaffcode of emotion.

API

FunctionDescriptionParameters
SendEmotionSet the current emotion of the animator.emotion: the enum of the emotion to send.
SendGestureSet the current gesture of the animator.gesture: the enum of the gesture to send.
SetMainStatusSet the main status of the animator.mainStatus: the enum of the main status to send.
MockServerEmoEventsCreate a mock emotion events (similar data from server) and test its behavior.nSpaffCode: the spaffcode of the emotion.