Navigation
API > API/Editor > API/Editor/BlueprintGraph
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- 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
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 | |
|---|---|---|---|
| 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 * | |||
| FProperty * | Get the FProperty for this variable node | ||
| FProperty * | Get the FProperty for this variable node | ||
| 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 | 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 | |
|---|---|---|---|
| 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 | |||
| void | GetNodeAttributes
(
TArray< TKeyValuePair< FString, FString >>& OutNodeAttributes |
This function returns an arbitrary number of attributes that describe this node for analytics events | |
| FText | |||
| void | HandleVariableRenamed
(
UBlueprint* InBlueprint, |
Handle when a variable is renamed in the Blueprint Palette | |
| 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 |
Overridden from UEdGraphNode
| Type | Name | Description | |
|---|---|---|---|
| void | AutowireNewNode
(
UEdGraphPin* FromPin |
Autowire a newly created node. | |
| bool | Returns true if it is possible to jump to the definition of this node (e.g., if it's a variable get or a function call) | ||
| bool | CanPasteHere
(
const UEdGraph* TargetGraph |
Determine if this node can live in the specified graph | |
| FEdGraphNodeDeprecationResponse | GetDeprecationResponse
(
EEdGraphNodeDeprecationType DeprecationType |
Returns the response to use when reporting a deprecation. | |
| FString | Returns the name of the excerpt to display from the specified external documentation link for the graph node Default behavior is to return the class name (including prefix) | ||
| FString | Returns the link used for external documentation for the graph node | ||
| FString | Gets the search string to find references to this node | ||
| FSlateIcon | GetIconAndTint
(
FLinearColor& OutColor |
||
| UObject * | Returns the object that should be focused when double-clicking on this node (the object can be an actor, which selects it in the world, or a node/graph/pin) | ||
| void | GetNodeContextMenuActions
(
UToolMenu* Menu, |
Gets a list of actions that can be done to this particular node | |
| FLinearColor | Gets the draw color of a node's title bar | ||
| FString | GetPinMetaData
(
FName InPinName, |
Return the requested metadata for the pin if there is any | |
| bool | Returns true if this node references a deprecated type or member. | ||
| bool | HasExternalDependencies
(
TArray< class UStruct* >* OptionalOutput |
Returns whether or not this node has dependencies on an external structure If OptionalOutput isn't null, it should be filled with the known dependencies objects (Classes, Structures, Functions, etc). | |
| void | Jump to the definition of this node (should only be called if CanJumpToDefinition() return true) | ||
| void | Perform any fixups (deep copies of associated data, etc...) necessary after a node has been pasted in the editor | ||
| void | Refresh the connectors on a node, preserving as many connections as it can. | ||
| void | ValidateNodeDuringCompilation
(
FCompilerResultsLog& MessageLog |
Gives each visual node a chance to do final validation before it's node is harvested for use at runtime. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Handles reading, writing, and reference collecting using FArchive. |
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. |