UK2Node_PromotableOperator

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

Unreal Engine C++ API Reference > Editor > BlueprintGraph

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](API\Editor\BlueprintGraph\UK2Node_CallFunction),  
    public [IK2Node_AddPinInterface](API\Editor\BlueprintGraph\IK2Node_AddPinInterface)  

Remarks

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

Constructors

Type Name Description
  UK2Node_PromotableOperator ( const FObjectInitializer& ObjectIn... )  

Functions

Type Name Description
bool CanConvertPinType ( const UEdGraphPin* Pin ) Returns true if the given pin can be converted via the context menu to another type
void ConvertPinType ( UEdGraphPin* PinToChange, const FEdGraphPinType NewPinType ) Convert the given pin to the new pin type.
UEdGraphPin ... FindTolerancePin () Attempts to find the error tolerance pin on this node. Can return nullptr.
UEdGraphPin ... GetAdditionalPin ( int32 PinIndex ) Gets the additional pin that was created at this index
const FName GetOperationName ()  
UEdGraphPin ... GetOutputPin () Returns the first pin with the EGPD_Output direction
void ResetNodeToWildcard () Recombines all split pins and sets the node to have default values (all wildcard pins)

Overridden from UK2Node_CallFunction

Type Name Description
void SetFromFunction ( const UFunction* Function ) Set properties of this node from a supplied function (does not save ref to function)

Overridden from UK2Node

Type Name Description
void ExpandNode ( FKismetCompilerContext& CompilerCo..., UEdGraph* SourceGraph ) Expands a node while compiling, which may add additional nodes or delete this node
bool IsConnectionDisallowed ( const UEdGraphPin* MyPin, const UEdGraphPin* OtherPin, FString& OutReason )  
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
void PostReconstructNode () Called at the end of ReconstructNode, allows node specific work to be performed
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

Type Name Description
void AllocateDefaultPins () Allocate default pins for a given node, based only the NodeType, which should already be filled in.
void AutowireNewNode ( UEdGraphPin* FromPin ) Autowire a newly created node.
void GetNodeContextMenuActions ( UToolMenu* Menu, UGraphNodeContextMenuContext* ... ) Gets a list of actions that can be done to this particular node
void GetPinHoverText ( const UEdGraphPin& Pin, FString& HoverTextOut ) Fetch the hover text for a pin when the graph is being edited.
FText GetTooltipText () Gets the tooltip to display when over the node
void NodeConnectionListChanged () Called when something external to this node has changed the connection list of any of the pins in the node
void PinDefaultValueChanged ( UEdGraphPin* Pin ) Called when the DefaultValue of one of the pins of this node is changed in the editor
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

Type Name Description
void AddInputPin () Add an additional input pin to this node
bool CanAddPin () Determines if a pin can be added to this node.
bool CanRemovePin ( const UEdGraphPin* Pin ) Returns true if the given pin can be removed from this node.
void RemoveInputPin ( UEdGraphPin* Pin ) Attempt to remove the given pin from this node.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library