UBlueprintVariableNodeSpawner

Takes care of spawning variable getter/setter nodes.

Windows
MacOS
Linux

Inheritance Hierarchy

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

Name Description

Public function

UBlueprintVariableNodeSpawner

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static

UBlueprintVa...

 

CreateFromLocal

(
    TSubclassOf< UK2Node_Variable > Nod...,
    UEdGraph* VarContext,
    FBPVariableDescription const& VarD...,
    FProperty* VarProperty,
    UObject* Outer
)

Creates a new UBlueprintVariableNodeSpawner, charged with spawning a local-variable node (for a variable that belongs to a specific graph).

Public function Static

UBlueprintVa...

 

CreateFromMemberOrParam

(
    TSubclassOf< UK2Node_Variable > Nod...,
    FProperty const* VarProperty,
    UEdGraph* VarContext,
    UClass* OwnerClass
)

Creates a new UBlueprintVariableNodeSpawner, charged with spawning a member-variable node (for a variable that has an associated FProperty)

Public function Const

FFieldVarian...

 

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.

Public function Const

FProperty co...

 

GetVarProperty()

Accessor to the variable's property.

Public function Const

FEdGraphPinT...

 

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).

Public function Const

bool

 

IsLocalVariable()

Since this spawner can wrap both local and member variables, we use this method to discern between the two.

Public function Const

bool

 

IsUserLocalVariable()

Overridden from UBlueprintNodeSpawner

Name Description

Public function Virtual Const

FBlueprintNo...

 

GetSpawnerSignature()

We want to be able to compare spawners, and have a signature that is rebuildable on subsequent runs.

Public function Virtual Const

FBlueprintAc...

 

GetUiSpec

(
    FBlueprintActionContext const& Con...,
    FBindingSet const& Bindings
)

Takes the default FBlueprintActionUiSpec and modifies it dynamically to accommodate the current context.

Public function Virtual Const

UEdGraphNode...

 

Invoke

(
    UEdGraph* ParentGraph,
    FBindingSet const& Bindings,
    FVector2D const Location
)

Takes care of spawning a node for the specified graph.

Public function Virtual

void

 

Prime()

Not required, but intended to passively help speed up menu building operations.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss