UK2Node_Switch

Windows
MacOS
Linux

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

Variables

Name Description

Public variable

uint32: 1

 

bHasDefaultPin

If true switch has a default pin

Public variable

TSubclassOf< cl...

 

FunctionClass

The class that the function is from.

Public variable

FName

 

FunctionName

The function underpining the switch, if required

Constructors

Name Description

Public function

UK2Node_Switch

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Virtual

void

 

AddPinToSwitchNode()

Adds a new execution pin to a switch node

Public function Virtual Const

bool

 

CanRemoveExecutionPin

(
    UEdGraphPin* TargetPin
)

Whether an execution pin can be removed from the node or not

Protected function Virtual

void

 

CreateCasePins()

Protected function Virtual

void

 

CreateFunctionPin()

Protected function Virtual

void

 

CreateSelectionPin()

Public function Const

UEdGraphPin ...

 

GetDefaultPin()

Public function Virtual Const

FString

 

GetExportTextForPin

(
    const UEdGraphPin* Pin
)

Public function Const

UEdGraphPin ...

 

GetFunctionPin()

Public function Virtual Const

FEdGraphPinT...

 

GetInnerCaseType()

Public function Virtual Const

FName

 

GetPinNameGivenIndex

(
    int32 Index
)

Public function Virtual Const

FEdGraphPinT...

 

GetPinType()

Gets the pin type from the schema for the subclass

Public function Const

UEdGraphPin ...

 

GetSelectionPin()

Getting pin access

Public function Static

FName

 

GetSelectionPinName()

Public function Virtual

FName

 

GetUniquePinName()

Gets a unique pin name, the next in the sequence

Protected function Virtual

void

 

RemovePin

(
    UEdGraphPin* TargetPin
)

Public function Virtual

void

 

RemovePinFromSwitchNode

(
    UEdGraphPin* TargetPin
)

Removes the specified execution pin from an switch node

Overridden from UK2Node

Name Description

Public function Virtual Const

bool

 

CanEverRemoveExecutionPin()

Return whether the node's execution pins should support the remove execution pin action

Public function Virtual Const

FNodeHandlin...

 

CreateNodeHandler

(
    FKismetCompilerContext& CompilerCo...
)

Public function Virtual Const

ERedirectTyp...

 

DoPinsMatchForReconstruction

(
    const UEdGraphPin* NewPin,
    int32 NewPinIndex,
    const UEdGraphPin* OldPin,
    int32 OldPinIndex
)

Whether or not two pins match for purposes of reconnection after reconstruction.

Public function Virtual Const

FText

 

GetMenuCategory()

Override to provide a default category for specific node types to be listed under.

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 Const

FSlateIcon

 

GetIconAndTint

(
    FLinearColor& OutColor
)

Public function Virtual Const

FLinearColor

 

GetNodeTitleColor()

Gets the draw color of a node's title bar

Overridden from UObject

Name Description

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

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