Navigation
API > API/Editor > API/Editor/BlueprintGraph
| Name | UK2Node_SwitchEnum |
| Type | class |
| Header File | /Engine/Source/Editor/BlueprintGraph/Classes/K2Node_SwitchEnum.h |
| Include Path | #include "K2Node_SwitchEnum.h" |
Syntax
UCLASS (MinimalAPI)
class UK2Node_SwitchEnum :
public UK2Node_Switch ,
public INodeDependingOnEnumInterface
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UEdGraphNode → UK2Node → UK2Node_Switch → UK2Node_SwitchEnum
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UK2Node_SwitchEnum
(
const FObjectInitializer& ObjectInitializer |
K2Node_SwitchEnum.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Enum | TObjectPtr< UEnum > | Name of the enum being switched on | K2Node_SwitchEnum.h | |
| EnumEntries | TArray< FName > | List of the current entries in the enum | K2Node_SwitchEnum.h | |
| EnumFriendlyNames | TArray< FText > | List of the current entries in the enum | K2Node_SwitchEnum.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedNodeTitle | FNodeTextCache | Constructing FText strings can be costly, so we cache the node's title | K2Node_SwitchEnum.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetEnum
(
UEnum* InEnum |
Bind the switch to a named enum | K2Node_SwitchEnum.h |
Overridden from UK2Node_Switch
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddPinToSwitchNode() |
Adds a new execution pin to a switch node | K2Node_SwitchEnum.h | |
virtual FEdGraphPinType GetPinType() |
Gets the pin type from the schema for the subclass | K2Node_SwitchEnum.h | |
virtual void RemovePinFromSwitchNode
(
UEdGraphPin* TargetPin |
Removes the specified execution pin from an switch node | K2Node_SwitchEnum.h | |
virtual bool SupportsAddPinButton() |
Determines whether the add button should be enabled | K2Node_SwitchEnum.h |
Overridden from UK2Node
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanEverRemoveExecutionPin() |
Return whether the node's execution pins should support the remove execution pin action | K2Node_SwitchEnum.h | |
virtual ERedirectType DoPinsMatchForReconstruction
(
const UEdGraphPin* NewPin, |
Whether or not two pins match for purposes of reconnection after reconstruction. | K2Node_SwitchEnum.h | |
virtual void GetMenuActions
(
FBlueprintActionDatabaseRegistrar& ActionRegistrar |
Replacement for GetMenuEntries(). | K2Node_SwitchEnum.h | |
virtual bool IsConnectionDisallowed
(
const UEdGraphPin* MyPin, |
K2Node_SwitchEnum.h | ||
virtual void PreloadRequiredAssets() |
Called before compilation begins, giving a blueprint time to force the linker to load data | K2Node_SwitchEnum.h |
Overridden from UEdGraphNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddPinSearchMetaDataInfo
(
const UEdGraphPin* Pin, |
K2Node_SwitchEnum.h | ||
virtual bool CanUserEditPinAdvancedViewFlag() |
K2Node_SwitchEnum.h | ||
virtual FText GetNodeTitle
(
ENodeTitleType::Type TitleType |
K2Node_SwitchEnum.h | ||
virtual FText GetTooltipText() |
K2Node_SwitchEnum.h | ||
virtual void ValidateNodeDuringCompilation
(
FCompilerResultsLog& MessageLog |
K2Node_SwitchEnum.h |
Overridden from INodeDependingOnEnumInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual UEnum * GetEnum() |
K2Node_SwitchEnum.h | ||
virtual void ReloadEnum
(
UEnum* InEnum |
K2Node_SwitchEnum.h | ||
virtual bool ShouldBeReconstructedAfterEnumChanged() |
K2Node_SwitchEnum.h |
Protected
Overridden from UK2Node_Switch
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CreateCasePins() |
Helper method to set-up pins | K2Node_SwitchEnum.h | |
virtual void CreateSelectionPin() |
Helper method to set-up correct selection pin | K2Node_SwitchEnum.h | |
virtual void RemovePin
(
UEdGraphPin* TargetPin |
Don't support removing pins from an enum | K2Node_SwitchEnum.h |