URigVMNode

The Node represents a single statement within a Graph.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

RigVMDeveloper

Header

/Engine/Source/Developer/RigVMDeveloper/Public/RigVMModel/RigVMNode.h

Include

#include "RigVMModel/RigVMNode.h"

Syntax

class URigVMNode : public UObject

Remarks

The Node represents a single statement within a Graph. Nodes can represent values such as Variables / Parameters, they can represent Function Invocations or Control Flow logic statements (such as If conditions of For loops). Additionally Nodes are used to represent Comment statements. Nodes contain Pins to represent parameters for Function Invocations or Value access on Variables / Parameters.

Variables

Name Description

Protected variable

FLinearColor

 

NodeColor

Protected variable

FString

 

NodeTitle

Protected variable

FVector2D

 

Position

Protected variable

FVector2D

 

Size

Constructors

Name Description

Public function

URigVMNode()

Default constructor.

Destructors

Name Description

Public function Virtual

~URigVMNode()

Default destructor.

Functions

Name Description

Protected function Virtual Const

bool

 

AllowsLinksOn

(
    const URigVMPin* InPin
)

Public function Virtual Const

bool

 

ContributesToResult()

Public function Const

URigVMPin &#...

 

FindPin

(
    const FString& InPinPath
)

Returns a Pin given it's partial pin path below this node (for example: "Color.R")

Public function Const

TArray< URig...

 

GetAllPinsRecursively()

Returns all of the Pins of this Node (including SubPins).

Public function Const

int32

 

GetBlockIndex()

Returns the index of the block this node belongs to.

Public function Virtual Const

FName

 

GetEventName()

Returns the name of the event.

Public function Const

URigVMGraph ...

 

GetGraph()

Returns the Graph of this Node.

Public function Const

URigVMInject...

 

GetInjectionInfo()

Returns the injection info of this Node (or nullptr)

Public function Const

int32

 

GetInstructionIndex()

Returns the current index of the instruction in the stack (or INDEX_NONE)

Public function Const

TArray< URig...

 

GetLinkedSourceNodes()

Returns a list of Nodes connected as sources to this Node as the target.

Public function Const

TArray< URig...

 

GetLinkedTargetNodes()

Returns a list of Nodes connected as targets to this Node as the source.

Public function Virtual Const

FLinearColor

 

GetNodeColor()

Returns the color of this node - used for UI.

Public function Const

int32

 

GetNodeIndex()

Returns the current index of the Node within the Graph.

Public function Const

FString

 

GetNodePath()

Returns the a .

Public function Virtual Const

FString

 

GetNodeTitle()

Returns the title of this Node - used for UI.

Public function

int32

 

GetNumSlices

(
    const FRigVMUserDataArray& InUserD...
)

Returns the number of slices on this node

Public function Virtual

int32

 

GetNumSlicesForContext

(
    const FName& InContextName,
    const FRigVMUserDataArray& InUserD...
)

Returns the number of slices for a given context.

Public function Const

const TArray...

 

GetPins()

Returns all of the top-level Pins of this Node.

Public function Const

FVector2D

 

GetPosition()

Returns the 2d position of this node - used for UI.

Public function Const

FVector2D

 

GetSize()

Returns the 2d size of this node - used for UI.

Public function Virtual

FName

 

GetSliceContextForPin

(
    URigVMPin* InRootPin,
    const FRigVMUserDataArray& InUserD...
)

Returns the name of the slice context for a pin.

Public function Virtual Const

FText

 

GetToolTipText()

Returns the tooltip of this node.

Protected function Virtual Const

FText

 

GetToolTipTextForPin

(
    const URigVMPin* InPin
)

Public function Virtual Const

bool

 

HasInputPin

(
    bool bIncludeIO
)

Returns true if the node has any input pins.

Public function Virtual Const

bool

 

HasIOPin()

Returns true if the node has any io pins.

Public function Virtual Const

bool

 

HasOutputPin

(
    bool bIncludeIO
)

Returns true if the node has any output pins.

Public function Virtual Const

bool

 

HasPinOfDirection

(
    ERigVMPinDirection InDirection
)

Returns true if the node has any pins of the provided direction.

Public function Virtual Const

bool

 

IsDefinedAsConstant()

Returns true if the node is defined as non-varying.

Public function Virtual Const

bool

 

IsDefinedAsVarying()

Returns true if the node is defined as non-varying.

Public function Virtual Const

bool

 

IsEvent()

Returns true if this Node is the beginning of a scope.

Public function Const

bool

 

IsInjected()

Returns true if this is an injected node.

Public function Const

bool

 

IsLinkedTo

(
    URigVMNode* InNode
)

Returns true if this Node is linked to another given node through any of the Nodes' Pins.

Public function Virtual Const

bool

 

IsMutable()

Returns true if this Node has side effects or internal state.

Public function Virtual Const

bool

 

IsPure()

Returns true if this Node has no side-effects and no internal state.

Public function Const

bool

 

IsSelected()

Returns true if this Node is currently selected.

Public function Const

bool

 

IsVisibleInUI()

Returns true if this should be visible in the UI.

Constants

Name

Description

NodeColorName

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss