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
- GetGraphConfig
- GetGraphInstance
- GetGraphInstance
- GetLevelNum
- GetNodesByLevel
- IsValidAsSubgraph
Reference
GetGraphConfig
Retrieves the graph configuration as a string.
Examples
Returns
Type:const FString&
Description: The graph configuration string.
GetGraphInstance
Creates and returns a compiled graph instance asynchronously.
Examples
Parameters
| Parameter | Type | Description | 
|---|---|---|
| Callback | FOnGraphCompiled | Delegate called when the graph instance is ready. | 
GetGraphInstance

Examples
GetLevelNum
Gets the number of levels in the graph hierarchy.
Examples
Returns
Type:int
Description: The number of levels in the graph.
GetNodesByLevel
Retrieves all nodes at a specific level in the graph hierarchy.
Examples
Parameters
| Parameter | Type | Description | 
|---|---|---|
| Level | int | The level to query for nodes. | 
| Nodes | TArray<UInworldNodeAsset*>& | Output array of nodes at the specified level. | 
IsValidAsSubgraph
Checks if this graph asset is valid for use as a subgraph.
Examples
Returns
Type:bool
Description: True if the graph can be used as a subgraph, false otherwise.

Examples
Parameters
| Parameter | Type | Description | 
|---|---|---|
| ToConsole | bool | If true, prints to console output. | 
| ToScreen | bool | If true, prints to screen overlay. |