FEdGraphSchemaAction_K2AddComponent

Action to add an 'add component' node to the graph

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FEdGraphSchemaAction

FEdGraphSchemaAction_K2NewNode

FEdGraphSchemaAction_K2AddComponent

References

Module

BlueprintGraph

Header

/Engine/Source/Editor/BlueprintGraph/Classes/EdGraphSchema_K2_Actions.h

Include

#include "EdGraphSchema_K2_Actions.h"

Syntax

struct FEdGraphSchemaAction_K2AddComponent : public FEdGraphSchemaAction_K2NewNode

Remarks

Action to add an 'add component' node to the graph

Variables

Name Description

Public variable

TObjectPtr< cla...

 

ComponentAsset

Option asset to assign to newly created component

Public variable

TSubclassOf< cl...

 

ComponentClass

Class of component we want to add

Constructors

Name Description

Public function

FEdGraphSchemaAction_K2AddComponent()

Public function

FEdGraphSchemaAction_K2AddComponent

(
    FText InNodeCategory,
    FText InMenuDesc,
    FText InToolTip,
    const int32 InGrouping
)

Functions

Name Description

Public function Static

FName

 

StaticGetTypeId()

Simple type info.

Overridden from FEdGraphSchemaAction

Name Description

Public function Virtual

void

 

AddReferencedObjects

(
    FReferenceCollector& Collector
)

GC.

Public function Virtual Const

FName

 

GetTypeId()

Public function Virtual

UEdGraphNode...

 

PerformAction

(
    UEdGraph* ParentGraph,
    UEdGraphPin* FromPin,
    const FVector2D Location,
    bool bSelectNewNode
)

Execute this action, given the graph and schema, and possibly a pin that we were dragged from.