Navigation
API > API/Editor > API/Editor/BlueprintGraph
Inheritance Hierarchy
- UEdGraphNode
- UK2Node
- UK2Node_Variable
- UK2Node_StructOperation
- UK2Node_StructMemberGet
- UK2Node_BreakStruct
- UK2Node_StructMemberSet
- UK2Node_MakeStruct
- UK2Node_SetFieldsInStruct
- UK2Node_VariableGet
- UK2Node_VariableSet
References
| Module | BlueprintGraph |
| Header | /Engine/Source/Editor/BlueprintGraph/Classes/K2Node_Variable.h |
| Include | #include "K2Node_Variable.h" |
Syntax
UCLASS (Abstract)
class UK2Node_Variable : public UK2Node
Variables
| Type | Name | Description | |
|---|---|---|---|
| TEnumAsByte< ESelfContextInfo::Type > | SelfContextInfo | ||
| FMemberReference | VariableReference | Reference to variable we want to set/get |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UK2Node_Variable
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CanPasteHere
(
const UEdGraph* TargetGraph |
||
| void | CheckForErrors
(
const UEdGraphSchema_K2* Schema, |
Validates there are no errors in the node | |
| void | Creates 'self' pin | ||
| bool | CreatePinForVariable
(
EEdGraphPinDirection Direction, |
Creates a reader or writer pin for a variable. | |
| bool | DoesRenamedVariableMatch
(
FName OldVariableName, |
Returns true if the variable names match, this looks for redirectors | |
| bool | FunctionParameterExists
(
const UEdGraph* InFunctionGraph, |
Returns whether a Function Graph contains a parameter with the given name | |
| const UActorComponent * | GetActorComponent
(
const FProperty* VariableProperty |
Utility function to retrieve actor component for variable property. | |
| FBPVariableDescription const * | |||
| FEdGraphNodeDeprecationResponse | GetDeprecationResponse
(
EEdGraphNodeDeprecationType DeprecationType |
||
| FString | |||
| FString | GetFindReferenceSearchString_Impl
(
EGetFindReferenceSearchStringFlags InFlags |
||
| FSlateIcon | GetIconAndTint
(
FLinearColor& OutColor |
||
| void | GetNodeContextMenuActions
(
UToolMenu* Menu, |
||
| FProperty * | Get the FProperty for this variable node | ||
| FProperty * | |||
| UEdGraphPin * | GetValuePin () |
Accessor for the value output pin of the node | |
| 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). | |
| UClass * | Get the class to look for this variable in | ||
| 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). | |
| FName | GetVarName () |
Util to get variable name | |
| FString | Util to get variable name as a string | ||
| FText | |||
| bool | |||
| bool | HasExternalDependencies
(
TArray< class UStruct* >* OptionalOutput |
||
| void | |||
| bool | RecreatePinForVariable
(
EEdGraphPinDirection Direction, |
Creates a reader or writer pin for a variable from an old pin. | |
| 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'. | |
| void | SetFromProperty
(
const FProperty* Property, |
Set up this variable node from the supplied FProperty | |
| void | Adds the variable reference to the suppressed deprecation warnings list |
Overridden from UK2Node
| Type | Name | Description | |
|---|---|---|---|
| void | AutowireNewNode
(
UEdGraphPin* FromPin |
||
| bool | |||
| ERedirectType | DoPinsMatchForReconstruction
(
const UEdGraphPin* NewPin, |
Whether or not two pins match for purposes of reconnection after reconstruction. | |
| bool | Return whether to draw this node as a small variable node | ||
| FName | |||
| FString | |||
| UObject * | |||
| void | GetNodeAttributes
(
TArray< TKeyValuePair< FString, FString > >& OutNodeAttributes |
This function returns an arbitrary number of attributes that describe this node for analytics events | |
| FLinearColor | |||
| FString | GetPinMetaData
(
FName InPinName, |
||
| FText | |||
| void | HandleVariableRenamed
(
UBlueprint* InBlueprint, |
Handle when a variable is renamed in the Blueprint Palette | |
| void | |||
| void | |||
| bool | ReferencesVariable
(
const FName& InVarName, |
Return whether this node references the specified variable, give the supplied scope. | |
| void | ReplaceReferences
(
UBlueprint* InBlueprint, |
Replace any member references of source with replacement | |
| void | Serialize
(
FArchive& Ar |
||
| void | ValidateNodeDuringCompilation
(
FCompilerResultsLog& MessageLog |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bSelfContext_DEPRECATED | Whether or not this should be a "self" context | |
| FName | VariableName_DEPRECATED | Name of variable | |
| TSubclassOf< class UObject > | VariableSourceClass_DEPRECATED | Class that this variable is defined in. Should be NULL if bSelfContext is true. |