Navigation
API > API/Editor > API/Editor/BlueprintGraph
Abstract base class of all blueprint graph nodes.
| Name | UK2Node |
| Type | class |
| Header File | /Engine/Source/Editor/BlueprintGraph/Classes/K2Node.h |
| Include Path | #include "K2Node.h" |
Syntax
UCLASS (Abstract, MinimalAPI)
class UK2Node : public UEdGraphNode
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UEdGraphNode → UK2Node
Derived Classes
UK2Node derived class hierarchy
- UAnimGraphNode_Base
- UK2Node_TemporaryVariable
- UK2Node_AnimNodeReference
- UK2Node_AssignmentStatement
- UK2Node_BaseAsyncTask
- UK2Node_BaseMCDelegate
- UK2Node_BitmaskLiteral
- UK2Node_CallFunction
- UK2Node_CastByteToEnum
- UK2Node_ConstructObjectFromClass
- UK2Node_ConvertAsset
- UK2Node_Copy
- UK2Node_CreateDelegate
- UK2Node_DeadClass
- UK2Node_DelegateSet
- UK2Node_DoOnceMultiInput
- UK2Node_DynamicCast
- UK2Node_EaseFunction
- UK2Node_EditablePinBase
- UK2Node_EnumEquality
- UK2Node_EnumLiteral
- UK2Node_EvaluateLiveLinkFrame
- UK2Node_ExecutionSequence
- UK2Node_ForEachElementInEnum
- UK2Node_FormatText
- UK2Node_GenericToText
- UK2Node_GetArrayItem
- UK2Node_GetClassDefaults
- UK2Node_GetDataTableRow
- UK2Node_GetEnumeratorName
- UK2Node_GetNumEnumEntries
- UK2Node_GetSequenceBinding
- UK2Node_GetSubsystem
- UK2Node_IfThenElse
- UK2Node_InputAction
- UK2Node_InputKey
- UK2Node_InputTouch
- UK2Node_Knot
- UK2Node_Literal
- UK2Node_LoadAsset
- UK2Node_MakeContainer
- UK2Node_MakeVariable
- UK2Node_MapForEach
- UK2Node_PixelMappingBaseComponent
- UK2Node_PureAssignmentStatement
- UK2Node_Select
- UK2Node_Self
- UK2Node_SetForEach
- UK2Node_SetVariableOnPersistentFrame
- UK2Node_SpawnActor
- UK2Node_Switch
- UK2Node_Timeline
- UK2Node_TransitionRuleGetter
- UK2Node_TunnelBoundary
- UK2Node_UpdateVirtualSubjectDataBase
- UK2Node_Variable
- UK2Node_VariableSetRef
- USceneStateTransitionResultNode
- UGameplayTagsK2Node_LiteralGameplayTag
- UGameplayTagsK2Node_MultiCompareBase
- UK2Node_DataprepActionCore
- UK2Node_EnhancedInputAction
- UK2Node_GetDMXFixturePatch
- UK2Node_GetDMXFixtureType
- UK2Node_GetInputActionValue
- UK2Node_MakeCurveExpressionMap
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UK2Node
(
const FObjectInitializer& ObjectInitializer |
K2Node.h |
Enums
Public
| Name | Remarks |
|---|---|
| EBaseNodeRefreshPriority |
Protected
| Name | Remarks |
|---|---|
| ERedirectType |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AllowMultipleSelfs
(
bool bInputAsArray |
K2Node.h | ||
virtual bool CanEverInsertExecutionPin() |
Return whether the node's execution pins should support the insert execution pin action | K2Node.h | |
virtual bool CanEverRemoveExecutionPin() |
Return whether the node's execution pins should support the remove execution pin action | K2Node.h | |
virtual bool CanPlaceBreakpoints() |
Returns whether this node can have breakpoints placed on it in the debugger | K2Node.h | |
virtual void ClearCachedBlueprintData
(
UBlueprint* Blueprint |
Clears out any cached data that needs to be regenerated after a structural blueprint change | K2Node.h | |
virtual void ConvertDeprecatedNode
(
UEdGraph* Graph, |
Performs a node-specific deprecation fixup, which may delete this node and replace it with another one | K2Node.h | |
virtual FNodeHandlingFunctor * CreateNodeHandler
(
FKismetCompilerContext& CompilerContext |
K2Node.h | ||
bool CreatePinsForFunctionEntryExit
(
const UFunction* Function, |
Creates the pins required for a function entry or exit node (only inputs as outputs or outputs as inputs respectively) | K2Node.h | |
virtual bool DoesInputWildcardPinAcceptArray
(
const UEdGraphPin* Pin |
K2Node.h | ||
virtual bool DoesOutputWildcardPinAcceptContainer
(
const UEdGraphPin* Pin |
K2Node.h | ||
bool DoesWildcardPinAcceptContainer
(
const UEdGraphPin* Pin |
K2Node.h | ||
virtual bool DrawNodeAsEntry() |
Return whether to draw this node as an entry | K2Node.h | |
virtual bool DrawNodeAsExit() |
Return whether to draw this node as an entry | K2Node.h | |
virtual bool DrawNodeAsVariable() |
Return whether to draw this node as a small variable node | K2Node.h | |
virtual void EarlyValidation
(
FCompilerResultsLog& MessageLog |
This function if used for nodes that needs CDO for validation (Called before expansion) | K2Node.h | |
virtual void ExpandNode
(
FKismetCompilerContext& CompilerContext, |
Expands a node while compiling, which may add additional nodes or delete this node | K2Node.h | |
UK2Node * ExpandSplitPin
(
FKismetCompilerContext* CompilerContext, |
K2Node.h | ||
void ExpandSplitPins
(
FKismetCompilerContext& CompilerContext, |
Helper function for ExpandNode(), allowing other contexts to call pin expansion alone | K2Node.h | |
UBlueprint * GetBlueprint() |
Get the Blueprint object to which this node belongs | K2Node.h | |
UClass * GetBlueprintClassFromNode() |
Util to get the generated class from a node. | K2Node.h | |
virtual FText GetCompactNodeTitle() |
Return title if drawing this node in 'compact' mode | K2Node.h | |
virtual FName GetCornerIcon() |
K2Node.h | ||
virtual UClass * GetDynamicBindingClass() |
Returns which dynamic binding class (if any) to use for this node. | K2Node.h | |
UEdGraphPin * GetExecPin() |
Get the input execution pin of this node (if one exists) | K2Node.h | |
virtual void GetMenuActions
(
FBlueprintActionDatabaseRegistrar& ActionRegistrar |
Replacement for GetMenuEntries(). | K2Node.h | |
virtual FText GetMenuCategory() |
Override to provide a default category for specific node types to be listed under. | K2Node.h | |
virtual void GetNodeAttributes
(
TArray< TKeyValuePair< FString, FString > >& OutNodeAttributes |
This function returns an arbitrary number of attributes that describe this node for analytics events | K2Node.h | |
virtual int32 GetNodeRefreshPriority() |
K2Node.h | ||
virtual AActor * GetReferencedLevelActor() |
If this node references an actor in the level that should be selectable by "Find Actors In Level," this will return a reference to that actor | K2Node.h | |
virtual FBlueprintNodeSignature GetSignature () |
Retrieves a unique identifier for this node type. | K2Node.h | |
UEdGraphPin * GetThenPin() |
Get the output then pin of this node (if one exists) | K2Node.h | |
virtual FText GetToolTipHeading() |
K2Node.h | ||
virtual void HandleFunctionRenamed
(
UBlueprint* InBlueprint, |
Handle when a function is renamed in the Blueprint Palette | K2Node.h | |
virtual void HandleVariableRenamed
(
UBlueprint* InBlueprint, |
Handle when a variable is renamed in the Blueprint Palette | K2Node.h | |
bool HasValidBlueprint () |
Return true if this node has a valid blueprint outer, or false otherwise. | K2Node.h | |
void InsertNewNode
(
UEdGraphPin* FromPin, |
Handles inserting the node between the FromPin and what the FromPin was original connected to | K2Node.h | |
virtual bool IsActionFilteredOut
(
FBlueprintActionFilter const& Filter |
Determine if the node of this type should be filtered in the actions menu | K2Node.h | |
virtual bool IsConnectionDisallowed
(
const UEdGraphPin* MyPin, |
K2Node.h | ||
virtual bool IsLatentForMacros() |
Hook for allowing derived types to determine if they should be treated as a latent node by macros | K2Node.h | |
virtual bool IsNodePure() |
Returns whether this node is considered 'pure' by the compiler | K2Node.h | |
virtual bool IsNodeRootSet () |
Query if this node should be kept as part of the root set during the pruning stage of compilation. | K2Node.h | |
virtual bool IsNodeSafeToIgnore() |
Query if this is a node that is safe to ignore (e.g., a comment node or other non-structural annotation that can be pruned with no warnings). | K2Node.h | |
virtual bool NodeCausesStructuralBlueprintChange() |
Return true if adding/removing this node requires calling MarkBlueprintAsStructurallyModified on the Blueprint | K2Node.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.h | |
FOnUserDefinedPinRenamed & OnUserDefinedPinRenamed() |
Retrieves a delegate that is called when a user-defined pin on this node is renamed | K2Node.h | |
virtual void PostReconstructNode() |
Called at the end of ReconstructNode, allows node specific work to be performed | K2Node.h | |
virtual void PreloadRequiredAssets() |
Called before compilation begins, giving a blueprint time to force the linker to load data | K2Node.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.h | |
| Return whether this node references the specified function, identified by a name and guid pair | K2Node.h | ||
virtual bool ReferencesVariable
(
const FName& InVarName, |
Return whether this node references the specified variable, give the supplied scope. | K2Node.h | |
virtual void RegisterDynamicBinding
(
UDynamicBlueprintBinding* BindingObject |
Puts information about this node into the dynamic binding object. | K2Node.h | |
ERenamePinResult RenameUserDefinedPin
(
const FName OldName, |
Renames a user defined pin and broadcasts the result to any OnUserDefinedPinRenamed listeners on success (if bTest is false) | K2Node.h | |
virtual void ReplaceReferences
(
UBlueprint* InBlueprint, |
Replace any member references of source with replacement | K2Node.h | |
virtual bool ShouldDrawAsBead() |
K2Node.h | ||
virtual bool ShouldDrawCompact() |
Should draw compact | K2Node.h | |
virtual bool ShouldShowNodeProperties() |
Return whether the node's properties display in the blueprint details panel | K2Node.h |
Overridden from UEdGraphNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AutowireNewNode
(
UEdGraphPin* FromPin |
K2Node.h | ||
virtual bool CanCreateUnderSpecifiedSchema
(
const UEdGraphSchema* DesiredSchema |
Can this node be created under the specified schema. | K2Node.h | |
virtual bool CanJumpToDefinition() |
K2Node.h | ||
virtual bool CanSplitPin
(
const UEdGraphPin* Pin |
K2Node.h | ||
virtual FString GetDocumentationLink() |
K2Node.h | ||
virtual UObject * GetJumpTargetForDoubleClick() |
K2Node.h | ||
virtual FLinearColor GetNodeTitleColor() |
K2Node.h | ||
virtual UEdGraphPin * GetPassThroughPin
(
const UEdGraphPin* FromPin |
K2Node.h | ||
virtual void GetPinHoverText
(
const UEdGraphPin& Pin, |
K2Node.h | ||
| K2Node.h | |||
virtual bool IsInDevelopmentMode() |
K2Node.h | ||
virtual void JumpToDefinition() |
K2Node.h | ||
virtual void PinConnectionListChanged
(
UEdGraphPin* Pin |
K2Node.h | ||
virtual void ReconstructNode() |
K2Node.h | ||
virtual bool ShowPaletteIconOnNode() |
K2Node.h | ||
virtual void ValidateNodeDuringCompilation
(
FCompilerResultsLog& MessageLog |
K2Node.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool HasNonEditorOnlyReferences() |
K2Node.h | ||
virtual void PostLoad() |
K2Node.h | ||
virtual void PreEditChange
(
FProperty* PropertyThatWillChange |
K2Node.h | ||
virtual void Serialize
(
FArchive& Ar |
K2Node.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Attempt to broadcast an event for a user-defined pin being renamed on this node | K2Node.h | ||
void DestroyPinList
(
TArray< UEdGraphPin* >& InPins |
Helper function to properly destroy a set of pins. | K2Node.h | |
virtual ERedirectType DoPinsMatchForReconstruction
(
const UEdGraphPin* NewPin, |
Whether or not two pins match for purposes of reconnection after reconstruction. | K2Node.h | |
virtual void FixupPinDefaultValues() |
Handle backwards compatible fixes on load | K2Node.h | |
virtual void FixupPinStringDataReferences
(
FArchive* SavingArchive |
Fixes up structure/soft object ref pins, on both save and load | K2Node.h | |
virtual void GetRedirectPinNames
(
const UEdGraphPin& Pin, |
Determines what the possible redirect pin names are | K2Node.h | |
void Message_Error
(
const FString& Message, |
K2Node.h | ||
void Message_Note
(
const FString& Message, |
Sends a message to the owning blueprint's CurrentMessageLog, if there is one available. | K2Node.h | |
void Message_Warn
(
const FString& Message, |
K2Node.h | ||
void PreloadObject
(
UObject* ReferencedObject |
Ensures the specified object is preloaded. ReferencedObject can be NULL. | K2Node.h | |
void ReconstructSinglePin
(
UEdGraphPin* NewPin, |
Handles the actual reconstruction (copying data, links, name, etc...) from two pins that have already been matched together. | K2Node.h | |
virtual ERenamePinResult RenameUserDefinedPinImpl
(
const FName OldName, |
Implementation function that renames an existing pin on the node. Does not broadcast notifications. | K2Node.h | |
void RestoreSplitPins
(
TArray< UEdGraphPin* >& OldPins |
Helper function to restore Split Pins after ReallocatePinsDuringReconstruction, call after recreating all pins to restore split pin state. | K2Node.h | |
void RewireOldPinsToNewPins
(
TArray< UEdGraphPin* >& InOldPins, |
Helper function to rewire old pins to new pins during node reconstruction (or other regeneration of pins) | K2Node.h | |
ERedirectType ShouldRedirectParam
(
const TArray< FString >& OldPinNames, |
Searches ParamRedirect Map and find if there is matching new paramreturns the redirect type | K2Node.h |