UK2Node_SwitchEnum

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

BlueprintGraph

Header

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

Include

#include "K2Node_SwitchEnum.h"

Syntax

class UK2Node_SwitchEnum :
    public UK2Node_Switch,
    public INodeDependingOnEnumInterface

Variables

Name Description

Public variable

UEnum *

 

Enum

Name of the enum being switched on

Public variable

TArray< FName >

 

EnumEntries

List of the current entries in the enum

Public variable

TArray< FText >

 

EnumFriendlyNames

List of the current entries in the enum

Constructors

Name Description

Public function

UK2Node_SwitchEnum

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

SetEnum

(
    UEnum* InEnum
)

Bind the switch to a named enum

Overridden from UK2Node_Switch

Name Description

Public function Virtual

void

 

AddPinToSwitchNode()

Adds a new execution pin to a switch node

Protected function Virtual

void

 

CreateCasePins()

Helper method to set-up pins

Protected function Virtual

void

 

CreateSelectionPin()

Helper method to set-up correct selection pin

Public function Virtual Const

FEdGraphPinT...

 

GetPinType()

Gets the pin type from the schema for the subclass

Protected function Virtual

void

 

RemovePin

(
    UEdGraphPin* TargetPin
)

Don't support removing pins from an enum

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

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

void

 

GetMenuActions

Replacement for GetMenuEntries().

Public function Virtual Const

bool

 

IsConnectionDisallowed

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

Public function Virtual

void

 

PreloadRequiredAssets()

Called before compilation begins, giving a blueprint time to force the linker to load data

Overridden from UEdGraphNode

Name Description

Public function Virtual Const

void

 

AddPinSearchMetaDataInfo

(
    const UEdGraphPin* Pin,
    TArray< struct FSearchTagDataPair >...
)

Adds node pin data to the search metadata, override to collect more data that may be desirable to search for

Public function Virtual Const

bool

 

CanUserEditPinAdvancedViewFlag()

Whether or not this node allows users to edit the advanced view flag of pins (actually edit the property, not the same as show/hide advanced pins).

Public function Virtual Const

FText

 

GetNodeTitle

(
    ENodeTitleType::Type TitleType
)

Gets the name of this node, shown in title bar

Public function Virtual Const

FText

 

GetTooltipText()

Gets the tooltip to display when over the node

Overridden from INodeDependingOnEnumInterface

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