UInterchangeBaseNodeContainer

Interchange [UInterchangeBaseNode](API\Runtime\InterchangeCore\Nodes\UInterchangeBaseNode) graph is a format used to feed asset/scene import/reimport/export factories/writer.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UInterchangeBaseNodeContainer

References

Module

InterchangeCore

Header

/Engine/Source/Runtime/Experimental/Interchange/Core/Public/Nodes/InterchangeBaseNodeContainer.h

Include

#include "Nodes/InterchangeBaseNodeContainer.h"

Syntax

class UInterchangeBaseNodeContainer : public UObject

Remarks

Interchange UInterchangeBaseNode graph is a format used to feed asset/scene import/reimport/export factories/writer. This container hold a flat list of all nodes that have been translated from the source data.

Translators are filling this container and the Import/Export managers are reading it to execute the import/export process

Constructors

Functions

Name Description

Public function

FString

 

AddNode

(
    UInterchangeBaseNode* Node
)

Add a node in the container, the node will be add into a TMap.

Public function Const

void

 

BreakableIterateNodes

(
    TFunctionRef< bool&,...
)

Unordered iteration of the all nodes, but I can be stop early by returning true

Public function Const

const UInter...

 

GetNode

(
    const FString& NodeUniqueID
)

Get an node pointer

Public function

UInterchange...

 

GetNode

(
    const FString& NodeUniqueID
)

Get an node pointer

Public function

UInterchange...

 

GetNodeChildren

(
    const FString& NodeUniqueID,
    int32 ChildIndex
)

Get the node nth const children

Public function Const

const UInter...

 

GetNodeChildren

(
    const FString& NodeUniqueID,
    int32 ChildIndex
)

Get the node nth const children. Const version

Public function Const

int32

 

GetNodeChildrenCount

(
    const FString& NodeUniqueID
)

Get the node children count

Public function Const

TArray< FStr...

 

GetNodeChildrenUids

(
    const FString& NodeUniqueID
)

Get all children Uid

Public function Const

void

 

GetNodes

(
    const UClass* ClassNode,
    TArray< FString >& OutNodes
)

Return all nodes that are of the ClassNode type

Public function Const

void

 

GetRoots

(
    TArray< FString >& RootNodes
)

Return all nodes that do not have any parent

Public function Const

bool

 

IsNodeUidValid

(
    const FString& NodeUniqueID
)

Return true if the node unique ID exist in the container

Public function Const

void

 

IterateNodes

(
    TFunctionRef< void&,...
)

Unordered iteration of the all nodes

Public function

void

 

LoadFromFile

(
    const FString& Filename
)

Serialize the node container from the specified file.

Public function

void

 

SaveToFile

(
    const FString& Filename
)

Serialize the node container into the specified file.

Public function

void

 

SerializeNodeContainerData

(
    FArchive& Ar
)

This function serialize the node container and all node sub-objects point by it.

Public function

bool

 

SetNodeParentUid

(
    const FString& NodeUniqueID,
    const FString& NewParentNodeUid
)

Set node ParentUid