Navigation
API > API/Plugins > API/Plugins/OptimusCore
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UOptimusNode
References
| Module | OptimusCore |
| Header | /Engine/Plugins/Animation/DeformerGraph/Source/OptimusCore/Public/OptimusNode.h |
| Include | #include "OptimusNode.h" |
Syntax
UCLASS (Abstract)
class UOptimusNode : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bSendNotifications | A sentinel to indicate whether sending notifications is allowed. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UOptimusNode () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| UOptimusNodePin * | AddGroupingPin
(
FName InName, |
Add a new grouping pin. | |
| UOptimusNodePin * | AddGroupingPinDirect
(
FName InName, |
||
| UOptimusNodePin * | AddPin
(
FName InName, |
||
| UOptimusNodePin * | AddPin
(
const FOptimusParameterBinding& InBinding, |
Add a new pin based on a parameter binding definition. Only allowed for top-level pins. | |
| UOptimusNodePin * | AddPinDirect
(
const FOptimusParameterBinding& InBinding, |
Add a new pin based on a parameter binding definition. Only allowed for top-level pins. | |
| UOptimusNodePin * | AddPinDirect
(
FName InName, |
Create a pin and add it to the node in the location specified. | |
| bool | CanConnectPinToNode
(
const UOptimusNodePin* InOtherPin, |
Preliminary check for whether valid connection can be made between an existing pin and a potentially existing pin on this node. | |
| bool | CanConnectPinToPin
(
const UOptimusNodePin& InThisNodesPin, |
Preliminary check for whether valid connection can be made between two existing pins. | |
| bool | Returns true if the node can be deleted by the user | ||
| void | Called when the node is being constructed. | ||
| void | |||
| void | ExportState
(
FArchive& Ar |
||
| UOptimusNodePin * | FindPin
(
const FStringView InPinPath |
Find the pin associated with the given dot-separated pin path. | |
| UOptimusNodePin * | FindPinFromPath
(
const TArray< FName >& InPinPath |
Find the pin from the given path array. | |
| UOptimusNodePin * | FindPinFromProperty
(
const FProperty* InRootProperty, |
Find the pin associated with the given FProperty object(s). | |
| UOptimusActionStack * | Return the action stack for this node. | ||
| TArray< UClass * > | Returns the class of all non-deprecated UOptimusNodeBase nodes that are defined, in no particular order. | ||
| FName | GetAvailablePinNameStable
(
const UObject* InNodeOrPin, |
Returns a unique name for pin. | |
| EOptimusDiagnosticLevel | Returns the node's diagnostic level (e.g. error state). | ||
| FText | Returns the display name to use on the graphical node in the graph editor. | ||
| FVector2D | Returns the position in the graph UI where the node is shown. | ||
| FName | Returns the node class category. This is used for categorizing the node for display. | ||
| FName | GetNodeName () |
Returns the node class name. This name is immutable for the given node class. | |
| FString | GetNodePath () |
Returns the absolute path of the node. | |
| UOptimusNodeGraph * | Returns the owning node graph of this node. | ||
| bool | GetPinExpanded
(
const UOptimusNodePin* InPin |
||
| TArrayView< UOptimusNodePin *const > | GetPins () |
Returns the list of all the pins on this node | |
| TArray< UOptimusNodePin * > | GetPinsByDirection
(
EOptimusNodePinDirection InDirection, |
Returns the list of pins on this node filtered by direction | |
| void | ImportState
(
FArchive& Ar |
||
| void | Allows the node to initialize any transient data that can be derived from serialized properties. | ||
| bool | MovePin
(
UOptimusNodePin* InPinToMove, |
Swap two sibling pins | |
| bool | MovePinDirect
(
UOptimusNodePin* InPinToMove, |
||
| bool | MovePinToGroupPinDirect
(
UOptimusNodePin* InPinToMove, |
||
| void | OnDataTypeChanged
(
FName InTypeName |
||
| void | Called just after the node is created, either via direct creation or deletion undo. | ||
| void | Derived nodes should override this function for any PostLoad fix-ups. | ||
| void | PreDuplicateRequirementActions
(
const UOptimusNodeGraph* InTargetGraph, |
Called prior to duplicate to allow the node to add its own graph requirements to to the list of actions being performed. | |
| bool | RemovePin
(
UOptimusNodePin* InPin |
Remove a pin. | |
| bool | RemovePinDirect
(
UOptimusNodePin* InPin |
Remove the pin with no undo. | |
| void | SetDiagnosticLevel
(
EOptimusDiagnosticLevel InDiagnosticLevel |
Sets the node diagnostic level (e.g. error state). | |
| bool | SetDisplayName
(
FText InDisplayName |
Set the display name for this node. | |
| bool | SetGraphPosition
(
const FVector2D& InPosition |
Sets the position in the graph UI that the node should be shown at. | |
| bool | SetGraphPositionDirect
(
const FVector2D& InPosition |
Set a new position of the node in the graph UI. | |
| bool | SetPinDataDomain
(
UOptimusNodePin* InPin, |
Set the pin's resource context names. | |
| bool | SetPinDataDomainDirect
(
UOptimusNodePin* InPin, |
||
| bool | SetPinDataType
(
UOptimusNodePin* InPin, |
Set the pin data type. | |
| bool | SetPinDataTypeDirect
(
UOptimusNodePin* InPin, |
||
| void | SetPinExpanded
(
const UOptimusNodePin* InPin, |
||
| bool | SetPinName
(
UOptimusNodePin* InPin, |
FIXME: Hoist to public. | |
| bool | SetPinNameDirect
(
UOptimusNodePin* InPin, |
||
| bool | ValidateConnection
(
const UOptimusNodePin& InThisNodesPin, |
||
| TOptional< FText > | ValidateForCompile
(
const FOptimusPinTraversalContext& InContext |
Optional: Perform local node validation for compilation. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostLoad () |
Using "final" here to make sure all derive nodes have InitializeTransientData() automatically called on them during PostLoad(), so please use PostLoadNodeSpecificData instead for any PostLoad fix-ups | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| CategoryName | |||
| PropertyMeta |