UOptimusDeformer::CreateGraph

Create a new graph of a given type, with an optional name.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

IOptimusNodeGraphCollectionOwner::CreateGraph()

UOptimusDeformer::CreateGraph()

References

Module

OptimusDeveloper

Header

/Engine/Plugins/Experimental/Optimus/Source/OptimusDeveloper/Public/OptimusDeformer.h

Include

#include "OptimusDeformer.h"

Source

/Engine/Plugins/Experimental/Optimus/Source/OptimusDeveloper/Private/OptimusDeformer.cpp

Syntax

virtual UOptimusNodeGraph * CreateGraph
(
    EOptimusNodeGraphType InType,
    FName InName,
    TOptional< int32 > InInsertBefore
)

Remarks

Create a new graph of a given type, with an optional name. The name may be changed to fit into the namespace. Only setup and trigger graphs can currently be created directly, and only a single setup graph. The setup graph is always the first, and the trigger graphs come after.

Returns

The newly created graph.

Parameters

Parameter

Description

InType

The type of graph to create.

InName

The name to give the graph.

InInsertBefore

The index at which the insert the graph at. This inserts the given graph before the graph already occupying this location. If unset, then the graph will not be inserted into the list of editable graphs, although it will be owned by this collection.