Navigation
API > API/Editor > API/Editor/BlueprintGraph
| Name | UK2Node_Variable |
| Type | class |
| Header File | /Engine/Source/Editor/BlueprintGraph/Classes/K2Node_Variable.h |
| Include Path | #include "K2Node_Variable.h" |
Syntax
UCLASS (MinimalAPI, Abstract)
class UK2Node_Variable : public UK2Node
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UEdGraphNode → UK2Node → UK2Node_Variable
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UK2Node_Variable
(
const FObjectInitializer& ObjectInitializer |
K2Node_Variable.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SelfContextInfo | TEnumAsByte< ESelfContextInfo::Type > | K2Node_Variable.h | ||
| VariableReference | FMemberReference | Reference to variable we want to set/get | K2Node_Variable.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CheckForErrors
(
const UEdGraphSchema_K2* Schema, |
Validates there are no errors in the node | K2Node_Variable.h | |
void CreatePinForSelf() |
Creates 'self' pin | K2Node_Variable.h | |
bool CreatePinForVariable
(
EEdGraphPinDirection Direction, |
Creates a reader or writer pin for a variable. | K2Node_Variable.h | |
FProperty * GetPropertyForVariable() |
Get the FProperty for this variable node | K2Node_Variable.h | |
FProperty * GetPropertyForVariableFromSkeleton() |
K2Node_Variable.h | ||
UEdGraphPin * GetValuePin() |
Accessor for the value output pin of the node | K2Node_Variable.h | |
UClass * GetVariableSourceClass() |
Get the class to look for this variable in | K2Node_Variable.h | |
FName GetVarName() |
Util to get variable name | K2Node_Variable.h | |
FString GetVarNameString() |
Util to get variable name as a string | K2Node_Variable.h | |
FText GetVarNameText() |
K2Node_Variable.h | ||
bool RecreatePinForVariable
(
EEdGraphPinDirection Direction, |
Creates a reader or writer pin for a variable from an old pin. | K2Node_Variable.h | |
| Set up this variable node from the supplied FProperty | K2Node_Variable.h |
Overridden from UK2Node
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ERedirectType DoPinsMatchForReconstruction
(
const UEdGraphPin* NewPin, |
Whether or not two pins match for purposes of reconnection after reconstruction. | K2Node_Variable.h | |
virtual bool DrawNodeAsVariable() |
Return whether to draw this node as a small variable node | K2Node_Variable.h | |
virtual FName GetCornerIcon() |
K2Node_Variable.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_Variable.h | |
virtual FText GetToolTipHeading() |
K2Node_Variable.h | ||
virtual void HandleVariableRenamed
(
UBlueprint* InBlueprint, |
Handle when a variable is renamed in the Blueprint Palette | K2Node_Variable.h | |
virtual bool ReferencesVariable
(
const FName& InVarName, |
Return whether this node references the specified variable, give the supplied scope. | K2Node_Variable.h | |
virtual void ReplaceReferences
(
UBlueprint* InBlueprint, |
Replace any member references of source with replacement | K2Node_Variable.h |
Overridden from UEdGraphNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AutowireNewNode
(
UEdGraphPin* FromPin |
K2Node_Variable.h | ||
virtual bool CanJumpToDefinition() |
K2Node_Variable.h | ||
virtual bool CanPasteHere
(
const UEdGraph* TargetGraph |
K2Node_Variable.h | ||
virtual FEdGraphNodeDeprecationResponse GetDeprecationResponse
(
EEdGraphNodeDeprecationType DeprecationType |
K2Node_Variable.h | ||
virtual FString GetDocumentationExcerptName() |
K2Node_Variable.h | ||
virtual FString GetDocumentationLink() |
K2Node_Variable.h | ||
virtual FString GetFindReferenceSearchString_Impl
(
EGetFindReferenceSearchStringFlags InFlags |
K2Node_Variable.h | ||
virtual FSlateIcon GetIconAndTint
(
FLinearColor& OutColor |
K2Node_Variable.h | ||
virtual UObject * GetJumpTargetForDoubleClick() |
K2Node_Variable.h | ||
virtual void GetNodeContextMenuActions
(
UToolMenu* Menu, |
K2Node_Variable.h | ||
virtual FLinearColor GetNodeTitleColor() |
K2Node_Variable.h | ||
| K2Node_Variable.h | |||
virtual bool HasDeprecatedReference() |
K2Node_Variable.h | ||
| K2Node_Variable.h | |||
virtual void JumpToDefinition() |
K2Node_Variable.h | ||
virtual void PostPasteNode() |
K2Node_Variable.h | ||
virtual void ReconstructNode() |
K2Node_Variable.h | ||
virtual void ValidateNodeDuringCompilation
(
FCompilerResultsLog& MessageLog |
K2Node_Variable.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Serialize
(
FArchive& Ar |
K2Node_Variable.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const UActorComponent * GetActorComponent
(
const FProperty* VariableProperty |
Utility function to retrieve actor component for variable property. | K2Node_Variable.h | |
FBPVariableDescription const * GetBlueprintVarDescription() |
K2Node_Variable.h | ||
bool RemapRestrictedLinkReference
(
FName OldVariableName, |
Remap a reference from one variable to another, if this variable is of class type 'MatchInVariableClass', and if linked to anything that is a child of 'RemapIfLinkedToClass'. | K2Node_Variable.h | |
void SuppressDeprecationWarning() |
Adds the variable reference to the suppressed deprecation warnings list | K2Node_Variable.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Returns true if the variable names match, this looks for redirectors | K2Node_Variable.h | ||
| Returns whether a Function Graph contains a parameter with the given name | K2Node_Variable.h | ||
static FSlateIcon GetVariableIconAndColor
(
const UStruct* VarScope, |
Utility method intended to serve as a choke point for various slate widgets to grab an icon from (for a specified variable). | K2Node_Variable.h | |
static FSlateIcon GetVarIconFromPinType
(
const FEdGraphPinType& InPinType, |
Utility method intended to serve as a choke point for various slate widgets to grab an icon from (for a specified variable pin type). | K2Node_Variable.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bSelfContext_DEPRECATED | uint32 | Whether or not this should be a "self" context | K2Node_Variable.h | |
| VariableName_DEPRECATED | FName | Name of variable | K2Node_Variable.h | |
| VariableSourceClass_DEPRECATED | TSubclassOf< class UObject > | Class that this variable is defined in. Should be NULL if bSelfContext is true. | K2Node_Variable.h |