Skip to main content
Overview > Inworld Graph Asset Class: UInworldGraphAsset | Inherits from: UObject Asset representation of an Inworld graph for serialization and storage. This class serves as the asset representation of an Inworld graph, containing all nodes, edges, and configuration data necessary to create and execute runtime graphs. It provides functionality for graph validation, configuration generation, and runtime graph instance creation.

Methods

Reference

GetGraphConfig

Retrieves the graph configuration as a string. GetGraphConfig Blueprint Node

Examples

const FString& GetGraphConfig()

Returns

Type: const FString& Description: The graph configuration string.

GetGraphInstance

Creates and returns a compiled graph instance asynchronously. GetGraphInstance Blueprint Node

Examples

void GetGraphInstance(FOnGraphCompiled Callback)

Parameters

ParameterTypeDescription
CallbackFOnGraphCompiledDelegate called when the graph instance is ready.

GetGraphInstance

GetGraphInstance Blueprint Node

Examples

void GetGraphInstance()

GetLevelNum

Gets the number of levels in the graph hierarchy. GetLevelNum Blueprint Node

Examples

int GetLevelNum()

Returns

Type: int Description: The number of levels in the graph.

GetNodesByLevel

Retrieves all nodes at a specific level in the graph hierarchy. GetNodesByLevel Blueprint Node

Examples

void GetNodesByLevel(
    int Level,
    TArray<UInworldNodeAsset*>& Nodes
)

Parameters

ParameterTypeDescription
LevelintThe level to query for nodes.
NodesTArray<UInworldNodeAsset*>&Output array of nodes at the specified level.

IsValidAsSubgraph

Checks if this graph asset is valid for use as a subgraph. IsValidAsSubgraph Blueprint Node

Examples

bool IsValidAsSubgraph()

Returns

Type: bool Description: True if the graph can be used as a subgraph, false otherwise.

Print

Prints debug information about the graph. Print Blueprint Node

Examples

void Print(
    bool ToConsole,
    bool ToScreen
)

Parameters

ParameterTypeDescription
ToConsoleboolIf true, prints to console output.
ToScreenboolIf true, prints to screen overlay.