UInworldGraphRuntimeData_EmotionState | Inherits from: UInworldGraphRuntimeData
Runtime data component for managing character emotional states. This runtime data component tracks and manages a character’s current emotional state, which can influence their behavior, dialogue tone, and responses during interactions. Emotion states can be explicitly set or derived from AI-generated responses.
Methods
Reference
GetEmotion
Retrieves the current emotion state.
Examples
Returns
Type:FInworldEmotion
Description: The current emotion state structure.
GetEmotionLabel
Retrieves the current emotion label enum value.
Examples
Returns
Type:EInworldEmotionLabel
Description: The current emotion label enum.
GetEmotionLabelString
Retrieves the emotion label as a human-readable string.
Examples
Returns
Type:FString
Description: String representation of the current emotion label.
SetEmotionLabel
Sets the character’s emotion to a specific label.
Examples
Parameters
| Parameter | Type | Description |
|---|---|---|
| InEmotionLabel | const EInworldEmotionLabel& | The new emotion label to set. |