UK2Node_Switch

Unreal Engine C++ API Reference > Editor > BlueprintGraph

Inheritance Hierarchy

References

   
Module BlueprintGraph
Header /Engine/Source/Editor/BlueprintGraph/Classes/K2Node_Switch.h
Include #include "K2Node_Switch.h"

Syntax

class UK2Node_Switch : public [UK2Node](API\Editor\BlueprintGraph\UK2Node)  

Variables

Type Name Description
uint32: 1 bHasDefaultPin If true switch has a default pin
TSubclassOf< cl... FunctionClass The class that the function is from.
FName FunctionName The function underpining the switch, if required

Constructors

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

Functions

Type Name Description
void AddPinToSwitchNode () Adds a new execution pin to a switch node
bool CanRemoveExecutionPin ( UEdGraphPin* TargetPin ) Whether an execution pin can be removed from the node or not
void CreateCasePins ()  
void CreateFunctionPin ()  
void CreateSelectionPin ()  
UEdGraphPin ... GetDefaultPin ()  
FString GetExportTextForPin ( const UEdGraphPin* Pin )  
UEdGraphPin ... GetFunctionPin ()  
FEdGraphPinT... GetInnerCaseType ()  
FName GetPinNameGivenIndex ( int32 Index )  
FEdGraphPinT... GetPinType () Gets the pin type from the schema for the subclass
UEdGraphPin ... GetSelectionPin () Getting pin access
FName GetSelectionPinName ()  
FName GetUniquePinName () Gets a unique pin name, the next in the sequence
void RemovePin ( UEdGraphPin* TargetPin )  
void RemovePinFromSwitchNode ( UEdGraphPin* TargetPin ) Removes the specified execution pin from an switch node
bool SupportsAddPinButton () Determines whether the add button should be enabled

Overridden from UK2Node

Type Name Description
bool CanEverRemoveExecutionPin () Return whether the node's execution pins should support the remove execution pin action
FNodeHandlin... CreateNodeHandler ( FKismetCompilerContext& CompilerCo... )  
ERedirectTyp... DoPinsMatchForReconstruction ( const UEdGraphPin* NewPin, int32 NewPinIndex, const UEdGraphPin* OldPin, int32 OldPinIndex ) Whether or not two pins match for purposes of reconnection after reconstruction.
FText GetMenuCategory () Override to provide a default category for specific node types to be listed under.

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.
FSlateIcon GetIconAndTint ( FLinearColor& OutColor )  
FLinearColor GetNodeTitleColor () Gets the draw color of a node's title bar

Overridden from UObject

Type Name Description
void PostEditChangeProperty ( FPropertyChangedEvent& PropertyCha... ) Called when a property on this object has been modified externally

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library