Skip to main content
Overview > Inworld Graph Class: UInworldGraph | Inherits from: UObject Represents a blueprintable and programmable runtime graph. Provides functionality for creating, compiling, and executing graphs asynchronously using callbacks. The graph can manage nodes, edges, and execution states for real-time execution purposes.

Methods

Reference

CancelAllExecutions

Cancels all ongoing and pending executions CancelAllExecutions Blueprint Node

Examples

void CancelAllExecutions()

CancelExecution

Cancels an ongoing graph execution CancelExecution Blueprint Node

Examples

void CancelExecution(const FString& ExecutionId)

Parameters

ParameterTypeDescription
ExecutionIdconst FString&The identifier of the execution to cancel

CheckNodeByName

Utility function for determining if a node exists in the graph

Examples

bool CheckNodeByName()

Returns

Type: bool Description: true if a node with the name exists, false otherwise

GetAllExecutions

Gets all current executions (running and pending) GetAllExecutions Blueprint Node

Examples

TArray<FInworldGraphExecution> GetAllExecutions()

Returns

Type: TArray<FInworldGraphExecution> Description: Array of all current executions

GetExecutionInfo

Gets information about a specific execution GetExecutionInfo Blueprint Node

Examples

FInworldGraphExecution GetExecutionInfo(const FString& ExecutionId)

Parameters

ParameterTypeDescription
ExecutionIdconst FString&The identifier of the execution

Returns

Type: FInworldGraphExecution Description: The execution information, or empty struct if not found

GetExecutionMode

Gets the current execution mode GetExecutionMode Blueprint Node

Examples

EInworldGraphExecutionMode GetExecutionMode()

Returns

Type: EInworldGraphExecutionMode Description: The current execution mode

GetExecutionStatus

Gets the status of a specific execution GetExecutionStatus Blueprint Node

Examples

EInworldGraphExecutionStatus GetExecutionStatus(const FString& ExecutionId)

Parameters

ParameterTypeDescription
ExecutionIdconst FString&The identifier of the execution

Returns

Type: EInworldGraphExecutionStatus Description: The current status of the execution

GetGraphInstance

Creates and compile an instance of the given InworldGraph asset. GetGraphInstance Blueprint Node

Examples

void GetGraphInstance(FOnGraphCompiled Callback)

Parameters

ParameterTypeDescription
CallbackFOnGraphCompiledCalled when the graph initialization is finished

GetGraphInstance

GetGraphInstance Blueprint Node

Examples

void GetGraphInstance()

GetNodeByName

Utility function for grabbing a member node by its unique id GetNodeByName Blueprint Node

Examples

UInworldNode* GetNodeByName(
    const FString& NodeName,
    TSubclassOf<UInworldNode> NodeClass
)

Parameters

ParameterTypeDescription
NodeNameconst FString&unique id of the node to look for
NodeClassTSubclassOf<UInworldNode>The class to convert the node to on return

Returns

Type: UInworldNode* Description: Pointer to the node with the given name, or nullptr if not found

GetNodeByName

GetNodeByName Blueprint Node

Examples

return GetNodeByName()

Returns

Type: return

GetNodeByName

GetNodeByName Blueprint Node

Examples

UInworldNode* GetNodeByName()

Returns

Type: UInworldNode*

GetPendingExecutionsCount

Gets the number of pending executions GetPendingExecutionsCount Blueprint Node

Examples

int32 GetPendingExecutionsCount()

Returns

Type: int32 Description: Number of pending executions

GetRunningExecutionsCount

Gets the number of currently running executions GetRunningExecutionsCount Blueprint Node

Examples

int32 GetRunningExecutionsCount()

Returns

Type: int32 Description: Number of running executions

IsCompiled

Checks if the graph has been compiled IsCompiled Blueprint Node

Examples

bool IsCompiled()

Returns

Type: bool Description: True if the graph is compiled, false otherwise

IsExecutionCanceled

Checks if an execution is canceled IsExecutionCanceled Blueprint Node

Examples

bool IsExecutionCanceled(const FString& ExecutionId)

Parameters

ParameterTypeDescription
ExecutionIdconst FString&The identifier of the execution to check

Returns

Type: bool Description: True if the execution is canceled, false otherwise

Lock

Examples

FScopeLock Lock()

Returns

Type: FScopeLock

SetExecutionMode

Sets the execution mode for the graph SetExecutionMode Blueprint Node

Examples

void SetExecutionMode(EInworldGraphExecutionMode Mode)

Parameters

ParameterTypeDescription
ModeEInworldGraphExecutionModeThe execution mode to set

SetGraphId

Utility function for changing the graph’s string identifier

Examples

void SetGraphId()