Navigation
API > API/Editor > API/Editor/BlueprintGraph
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintNodeSpawner
- UBlueprintFieldNodeSpawner
- UBlueprintVariableNodeSpawner
References
| Module | BlueprintGraph |
| Header | /Engine/Source/Editor/BlueprintGraph/Classes/BlueprintVariableNodeSpawner.h |
| Include | #include "BlueprintVariableNodeSpawner.h" |
Syntax
class UBlueprintVariableNodeSpawner : public UBlueprintFieldNodeSpawner
Remarks
Takes care of spawning variable getter/setter nodes. Serves as the "action" portion for certain FBlueprintActionMenuItems. Evolved from FEdGraphSchemaAction_K2Var, and can spawn nodes for both member-variables and local function variables.
Constructors
| Type | Name | Description | |
|---|---|---|---|
UBlueprintVariableNodeSpawner
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UBlueprintVariableNodeSpawner * | CreateFromLocal
(
TSubclassOf< UK2Node_Variable > NodeClass, |
Creates a new UBlueprintVariableNodeSpawner, charged with spawning a local-variable node (for a variable that belongs to a specific graph). | |
| UBlueprintVariableNodeSpawner * | CreateFromMemberOrParam
(
TSubclassOf< UK2Node_Variable > NodeClass, |
Creates a new UBlueprintVariableNodeSpawner, charged with spawning a member-variable node (for a variable that has an associated FProperty) | |
| FFieldVariant | GetVarOuter () |
If this is a local variable, then this will return the UEdGraph that it belongs to, otherwise it pulls the outer from the wrapped member-variable property. | |
| FProperty const * | Accessor to the variable's property. | ||
| FEdGraphPinType | GetVarType () |
Utility function for easily accessing the variable's type (needs to pull the information differently if it is a local variable as opposed to a member variable with a FProperty). | |
| bool | Since this spawner can wrap both local and member variables, we use this method to discern between the two. | ||
| bool |
Overridden from UBlueprintNodeSpawner
| Type | Name | Description | |
|---|---|---|---|
| FBlueprintNodeSignature | We want to be able to compare spawners, and have a signature that is rebuildable on subsequent runs. | ||
| FBlueprintActionUiSpec | GetUiSpec
(
FBlueprintActionContext const& Context, |
Takes the default FBlueprintActionUiSpec and modifies it dynamically to accommodate the current context. | |
| UEdGraphNode * | Invoke
(
UEdGraph* ParentGraph, |
Takes care of spawning a node for the specified graph. | |
| void | Prime () |
Not required, but intended to passively help speed up menu building operations. |