Navigation
API > API/Plugins > API/Plugins/OptimusCore > API/Plugins/OptimusCore/IOptimusNodeGraphCollectionOwner
Description
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.
Derived Overrides
| Name | CreateGraphDirect |
| Type | function |
| Header File | /Engine/Plugins/Animation/DeformerGraph/Source/OptimusCore/Public/IOptimusNodeGraphCollectionOwner.h |
| Include Path | #include "IOptimusNodeGraphCollectionOwner.h" |
UOptimusNodeGraph * CreateGraphDirect
(
EOptimusNodeGraphType InType,
FName InName,
TOptional < int32 > InInsertBefore
)
The newly created graph.
Parameters
| Name | Remarks |
|---|---|
| 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. |