UK2Node_PromotableOperator

The promotable operator node allows for pin types to be promoted to others, i.e. float to double

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

BlueprintGraph

Header

/Engine/Source/Editor/BlueprintGraph/Classes/K2Node_PromotableOperator.h

Include

#include "K2Node_PromotableOperator.h"

Syntax

class UK2Node_PromotableOperator :
    public UK2Node_CallFunction,
    public IK2Node_AddPinInterface

Remarks

The promotable operator node allows for pin types to be promoted to others, i.e. float to double

Constructors

Name Description

Public function

UK2Node_PromotableOperator

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const

bool

 

CanConvertPinType

(
    const UEdGraphPin* Pin
)

Returns true if the given pin can be converted via the context menu to another type

Public function

void

 

ConvertPinType

(
    UEdGraphPin* PinToChange,
    const FEdGraphPinType NewPinType
)

Convert the given pin to the new pin type.

Public function Const

UEdGraphPin ...

 

FindTolerancePin()

Attempts to find the error tolerance pin on this node. Can return nullptr.

Public function Const

UEdGraphPin ...

 

GetAdditionalPin

(
    int32 PinIndex
)

Gets the additional pin that was created at this index

Public function Const

const FName

 

GetOperationName()

Public function Const

UEdGraphPin ...

 

GetOutputPin()

Returns the first pin with the EGPD_Output direction

Public function

void

 

ResetNodeToWildcard()

Recombines all split pins and sets the node to have default values (all wildcard pins)

Overridden from UK2Node_CallFunction

Name Description

Public function Virtual

void

 

SetFromFunction

(
    const UFunction* Function
)

Set properties of this node from a supplied function (does not save ref to function)

Overridden from UK2Node

Name Description

Public function Virtual

void

 

ExpandNode

(
    FKismetCompilerContext& CompilerCo...,
    UEdGraph* SourceGraph
)

Expands a node while compiling, which may add additional nodes or delete this node

Public function Virtual Const

bool

 

IsConnectionDisallowed

(
    const UEdGraphPin* MyPin,
    const UEdGraphPin* OtherPin,
    FString& OutReason
)

Public function Virtual

void

 

NotifyPinConnectionListChanged

(
    UEdGraphPin* Pin
)

Called when the connection list of one of the pins of this node is changed in the editor, after the pin has had it's literal cleared

Public function Virtual

void

 

PostReconstructNode()

Called at the end of ReconstructNode, allows node specific work to be performed

Public function Virtual

void

 

ReallocatePinsDuringReconstruction

(
    TArray< UEdGraphPin* >& OldPi...
)

Reallocate pins during reconstruction; by default ignores the old pins and calls AllocateDefaultPins() If you override this to create additional pins you likely need to call RestoreSplitPins to restore any pins that have been split (e.g. a vector pin split into its components)

Overridden from UEdGraphNode

Name Description

Public function Virtual

void

 

AllocateDefaultPins()

Allocate default pins for a given node, based only the NodeType, which should already be filled in.

Public function Virtual

void

 

AutowireNewNode

(
    UEdGraphPin* FromPin
)

Autowire a newly created node.

Public function Virtual Const

void

 

GetNodeContextMenuActions

(
    UToolMenu* Menu,
    UGraphNodeContextMenuContext* ...
)

Gets a list of actions that can be done to this particular node

Public function Virtual Const

void

 

GetPinHoverText

(
    const UEdGraphPin& Pin,
    FString& HoverTextOut
)

Fetch the hover text for a pin when the graph is being edited.

Public function Virtual Const

FText

 

GetTooltipText()

Gets the tooltip to display when over the node

Public function Virtual

void

 

NodeConnectionListChanged()

Called when something external to this node has changed the connection list of any of the pins in the node

Public function Virtual

void

 

PinDefaultValueChanged

(
    UEdGraphPin* Pin
)

Called when the DefaultValue of one of the pins of this node is changed in the editor

Public function Virtual

void

 

PostPasteNode()

Perform any fixups (deep copies of associated data, etc...) necessary after a node has been pasted in the editor

Overridden from IK2Node_AddPinInterface

Name Description

Public function Virtual

void

 

AddInputPin()

Add an additional input pin to this node

Public function Virtual Const

bool

 

CanAddPin()

Determines if a pin can be added to this node.

Public function Virtual Const

bool

 

CanRemovePin

(
    const UEdGraphPin* Pin
)

Returns true if the given pin can be removed from this node.

Public function Virtual

void

 

RemoveInputPin

(
    UEdGraphPin* Pin
)

Attempt to remove the given pin from this node.