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
Variable | Description |
---|
EmotionMap | The EmotionMap used in the canvas. |
StatusDropDown | The drop down fields used in listing the emotion status. |
ServerEventDropDown | The drop down fields used in listing the server events. |
Properties
Variables | Description |
---|
Emotion | Get the current spaffcode of emotion. |
API
Function | Description | Parameters |
---|
SendEmotion | Set the current emotion of the animator. | emotion: the enum of the emotion to send. |
SendGesture | Set the current gesture of the animator. | gesture: the enum of the gesture to send. |
SetMainStatus | Set the main status of the animator. | mainStatus: the enum of the main status to send. |
MockServerEmoEvents | Create a mock emotion events (similar data from server) and test its behavior. | nSpaffCode: the spaffcode of the emotion. |