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.
Overview > Inworld Character Subsystem
Class: UInworldCharacterSubsystem | Inherits from: UWorldSubsystem
World subsystem for managing Inworld character interactions and conversations. This subsystem provides centralized management of Inworld conversation targets, character registration, and spatial queries for finding conversation partners. It tracks all active conversation targets in the world and provides utilities for distance and angle-based character selection.
Methods
Reference
GetCharacterData
Examples
bool GetCharacterData(
UDataTable* DataTableToSearch,
const FName& CharacterID,
FInworldCharacterConfig& OutData
)
Parameters
| Parameter | Type | Description |
|---|
| DataTableToSearch | UDataTable* | |
| CharacterID | const FName& | |
| OutData | FInworldCharacterConfig& | |
Returns
Type: bool
GetClosestConversationTarget
Examples
UInworldConversationTargetComponent* GetClosestConversationTarget(
const FTransform& Transform,
float MaxDistance,
float ToleranceAngle
)
Parameters
| Parameter | Type | Description |
|---|
| Transform | const FTransform& | |
| MaxDistance | float | |
| ToleranceAngle | float | |
Returns
Type: UInworldConversationTargetComponent*
GetClosestConversationTargetToConversationTarget
Examples
UInworldConversationTargetComponent* GetClosestConversationTargetToConversationTarget(
UInworldConversationTargetComponent* TargetCharacter,
float MaxDistance,
float ToleranceAngle
)
Parameters
| Parameter | Type | Description |
|---|
| TargetCharacter | UInworldConversationTargetComponent* | |
| MaxDistance | float | |
| ToleranceAngle | float | |
Returns
Type: UInworldConversationTargetComponent*
GetClosestConversationTargetToReticle
Examples
UInworldConversationTargetComponent* GetClosestConversationTargetToReticle(
APlayerController* PlayerController,
float MaxDistance
)
Parameters
| Parameter | Type | Description |
|---|
| PlayerController | APlayerController* | |
| MaxDistance | float | |
Returns
Type: UInworldConversationTargetComponent*
GetConversationTarget
Retrieves a conversation target by its unique identifier.
Examples
UInworldConversationTargetComponent* GetConversationTarget(const FString& Id)
Parameters
| Parameter | Type | Description |
|---|
| Id | const FString& | The unique identifier of the conversation target to find |
Returns
Type: UInworldConversationTargetComponent*
Description: The conversation target with the specified ID, or nullptr if not found
GetConversationTargetMap
Retrieves the complete map of all registered conversation targets.
Examples
const TMap<FString, UInworldConversationTargetComponent*>& GetConversationTargetMap()
Returns
Type: const TMap<FString, UInworldConversationTargetComponent*>&
Description: Reference to the map of conversation targets (ID -> Component)