UK2Node_AddComponentByClass

Implementation of K2Node for creating a component based on a selected or passed in class

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

BlueprintGraph

Header

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

Include

#include "K2Node_AddComponentByClass.h"

Syntax

class UK2Node_AddComponentByClass : public UK2Node_ConstructObjectFromClass

Remarks

Implementation of K2Node for creating a component based on a selected or passed in class

Constructors

Name Description

Public function

UK2Node_AddComponentByClass

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Protected function Const

UEdGraphPin ...

 

GetManualAttachmentPin()

Protected function Const

UEdGraphPin ...

 

GetRelativeTransformPin()

Protected function Const

bool

 

IsSceneComponent()

Returns true if the currently selected or linked class is known to be a scene component

Protected function

void

 

SetSceneComponentPinsHidden

(
    bool bHidden
)

Utility function to set whether the scene component specific pins are hidden or not

Overridden from UK2Node_ConstructObjectFromClass

Name Description

Public function Virtual

void

 

CreatePinsForClass

(
    UClass* InClass,
    TArray< UEdGraphPin* >* O...
)

Create new pins to show properties on archetype

Protected function Virtual Const

FText

 

GetBaseNodeTitle()

Gets the node for use in lists and menus

Protected function Virtual Const

UClass *

 

GetClassPinBaseClass()

Gets base class to use for the 'class' pin.

Protected function Virtual Const

FText

 

GetDefaultNodeTitle()

Gets the default node title when no class is selected

Protected function Virtual Const

FText

 

GetNodeTitleFormat()

Gets the node title when a class has been selected.

Protected function Virtual Const

bool

 

IsSpawnVarPin

(
    UEdGraphPin* Pin
)

See if this is a spawn variable pin, or a 'default' pin

Overridden from UK2Node

Name Description

Public function Virtual

void

 

ExpandNode

(
    FKismetCompilerContext& CompilerCo...,
    UEdGraph* SourceGraph
)

Expands a node while compiling, which may add additional nodes or delete this node

Overridden from UEdGraphNode

Name Description

Public function Virtual

void

 

AllocateDefaultPins()

Allocate default pins for a given node, based only the NodeType, which should already be filled in.

Public function Virtual

void

 

PinDefaultValueChanged

(
    UEdGraphPin* Pin
)

Called when the DefaultValue of one of the pins of this node is changed in the editor