Navigation
API > API/Editor > API/Editor/BlueprintGraph
The promotable operator node allows for pin types to be promoted to others, i.e. float to double
| Name | UK2Node_PromotableOperator |
| Type | class |
| Header File | /Engine/Source/Editor/BlueprintGraph/Classes/K2Node_PromotableOperator.h |
| Include Path | #include "K2Node_PromotableOperator.h" |
Syntax
UCLASS (MinimalAPI)
class UK2Node_PromotableOperator :
public UK2Node_CallFunction ,
public IK2Node_AddPinInterface
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UEdGraphNode → UK2Node → UK2Node_CallFunction → UK2Node_PromotableOperator
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UK2Node_PromotableOperator
(
const FObjectInitializer& ObjectInitializer |
K2Node_PromotableOperator.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bDefaultValueReentranceGuard | bool | Guard to prevent possible recursive calls from ResetPinToAutogeneratedDefaultValue when breaking all links to this node | K2Node_PromotableOperator.h | |
| NumAdditionalInputs | int32 | The current number of additional pins on this node | K2Node_PromotableOperator.h | |
| OperationName | FName | The name that this operation uses ("Add", "Multiply", etc) | K2Node_PromotableOperator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CanConvertPinType
(
const UEdGraphPin* Pin |
Returns true if the given pin can be converted via the context menu to another type | K2Node_PromotableOperator.h | |
void ConvertPinType
(
UEdGraphPin* PinToChange, |
Convert the given pin to the new pin type. | K2Node_PromotableOperator.h | |
UEdGraphPin * FindTolerancePin() |
Attempts to find the error tolerance pin on this node. Can return nullptr. | K2Node_PromotableOperator.h | |
UEdGraphPin * GetAdditionalPin
(
int32 PinIndex |
Gets the additional pin that was created at this index | K2Node_PromotableOperator.h | |
const FName GetOperationName() |
K2Node_PromotableOperator.h | ||
UEdGraphPin * GetOutputPin() |
Returns the first pin with the EGPD_Output direction | K2Node_PromotableOperator.h | |
void ResetNodeToWildcard() |
Recombines all split pins and sets the node to have default values (all wildcard pins) | K2Node_PromotableOperator.h |
Overridden from UK2Node_CallFunction
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SetFromFunction
(
const UFunction* Function |
Set properties of this node from a supplied function (does not save ref to function) | K2Node_PromotableOperator.h |
Overridden from UK2Node
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ExpandNode
(
FKismetCompilerContext& CompilerContext, |
Expands a node while compiling, which may add additional nodes or delete this node | K2Node_PromotableOperator.h | |
virtual bool IsConnectionDisallowed
(
const UEdGraphPin* MyPin, |
K2Node_PromotableOperator.h | ||
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 | K2Node_PromotableOperator.h | |
virtual void PostReconstructNode() |
Called at the end of ReconstructNode, allows node specific work to be performed | K2Node_PromotableOperator.h | |
virtual void ReallocatePinsDuringReconstruction
(
TArray< UEdGraphPin* >& OldPins |
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) | K2Node_PromotableOperator.h |
Overridden from UEdGraphNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AllocateDefaultPins() |
K2Node_PromotableOperator.h | ||
virtual void AutowireNewNode
(
UEdGraphPin* FromPin |
K2Node_PromotableOperator.h | ||
virtual void GetNodeContextMenuActions
(
UToolMenu* Menu, |
K2Node_PromotableOperator.h | ||
virtual void GetPinHoverText
(
const UEdGraphPin& Pin, |
K2Node_PromotableOperator.h | ||
virtual FText GetTooltipText() |
K2Node_PromotableOperator.h | ||
virtual void NodeConnectionListChanged() |
K2Node_PromotableOperator.h | ||
virtual void PinDefaultValueChanged
(
UEdGraphPin* Pin |
K2Node_PromotableOperator.h | ||
virtual void PostPasteNode() |
K2Node_PromotableOperator.h |
Overridden from IK2Node_AddPinInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddInputPin() |
Add an additional input pin to this node | K2Node_PromotableOperator.h | |
virtual bool CanAddPin () |
Determines if a pin can be added to this node. | K2Node_PromotableOperator.h | |
virtual bool CanRemovePin
(
const UEdGraphPin* Pin |
Returns true if the given pin can be removed from this node. | K2Node_PromotableOperator.h | |
virtual void RemoveInputPin
(
UEdGraphPin* Pin |
Attempt to remove the given pin from this node. | K2Node_PromotableOperator.h |
Protected
Overridden from UK2Node_CallFunction
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanToggleNodePurity () |
By default, pure nodes can be toggled. | K2Node_PromotableOperator.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool CanConvertComparisonOperatorNodeType
(
const UEdGraphNode* Node |
Returns true if we can convert this node to another comparison operator type. | K2Node_PromotableOperator.h | |
static void ConvertComparisonOperatorNode
(
UEdGraphNode* Node, |
Converts the given node to use the new operator name | K2Node_PromotableOperator.h |