Overview > Inworld Graph Runtime Data Relation State Class:Documentation Index
Fetch the complete documentation index at: https://dev.docs.inworld.ai/llms.txt
Use this file to discover all available pages before exploring further.
UInworldGraphRuntimeData_RelationState | Inherits from: UInworldGraphRuntimeData
Runtime data component for managing character relationship states. This runtime data component tracks and manages the relationship state between a character and another entity (typically the player). Relationship states include multi-dimensional metrics like trust, respect, familiarity, flirtation, and attraction that influence how characters interact and respond in conversations.
Methods
Reference
GetRelation
Retrieves the complete relationship state.
Examples
Returns
Type:FInworldRelation
Description: The full relationship state structure with all metrics.
GetRelationshipLabel
Retrieves the primary relationship label derived from the metrics.
Examples
Returns
Type:EInworldRelationLabel
Description: The relationship label enum (e.g., FRIENDLY, HOSTILE, NEUTRAL).
GetRelationshipLabelString
Retrieves the relationship label as a human-readable string.
Examples
Returns
Type:FString
Description: String representation of the relationship label.
UpdateRelation
Updates the relationship state with new relation data.
Examples
Parameters
| Parameter | Type | Description |
|---|---|---|
| Relation | const FInworldRelation& | The new relationship state to apply. |
UpdateRelation
Updates the relationship state by parsing an AI-generated text response.