UK2Node_AddComponent

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

BlueprintGraph

Header

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

Include

#include "K2Node_AddComponent.h"

Syntax

class UK2Node_AddComponent : public UK2Node_CallFunction

Variables

Name Description

Public variable

uint32: 1

 

bHasExposedVariable

Public variable

FString

 

TemplateBlueprint

The blueprint name we came from, so we can lookup the template after a paste

Public variable

TObjectPtr< UCl...

 

TemplateType

Constructors

Name Description

Public function

UK2Node_AddComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

AllocateDefaultPinsWithoutExposedVariables()

Public function

void

 

AllocatePinsForExposedVariables()

Public function Static

FName

 

GetAddComponentFunctionName()

Static name of function to call

Public function Const

UEdGraphPin ...

 

GetManualAttachmentPin()

Public function Const

UEdGraphPin ...

 

GetRelativeTransformPin()

Public function Const

UActorCompon...

 

GetTemplateFromNode()

Tries to get a template object from this node.

Public function Const

UEdGraphPin ...

 

GetTemplateNamePinChecked()

Public function

void

 

MakeNewComponentTemplate()

Helper method used to instantiate a new component template after duplication.

Public function

FName

 

MakeNewComponentTemplateName

(
    UObject* InOuter,
    UClass* InComponentClass
)

Helper method used to generate a new, unique component template name.

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

Public function Virtual

void

 

PostReconstructNode()

Called at the end of ReconstructNode, allows node specific work to be performed

Public function Virtual

void

 

ReallocatePinsDuringReconstruction

(
    TArray< UEdGraphPin* >& OldPi...
)

Reallocate pins during reconstruction; by default ignores the old pins and calls AllocateDefaultPins() If you override this to create additional pins you likely need to call RestoreSplitPins to restore any pins that have been split (e.g. a vector pin split into its components)

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

 

DestroyNode()

Destroy the specified node

Public function Virtual

void

 

FindDiffs

(
    UEdGraphNode* OtherNode,
    FDiffResults& Results
)

Gives the node the option to customize how diffs are discovered within it.

Public function Virtual Const

FString

 

GetDocumentationExcerptName()

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)

Public function Virtual Const

FString

 

GetDocumentationLink()

Returns the link used for external documentation for the graph node

Public function Virtual Const

FText

 

GetNodeTitle

(
    ENodeTitleType::Type TitleType
)

Gets the name of this node, shown in title bar

Public function Virtual Const

bool

 

IsCompatibleWithGraph

(
    UEdGraph const* Graph
)

Determine if a node of this type can be created for the specified graph.

Public function Virtual

void

 

PostPasteNode()

Perform any fixups (deep copies of associated data, etc...) necessary after a node has been pasted in the editor

Public function Virtual

void

 

PrepareForCopying()

Perform any steps necessary prior to copying a node into the paste buffer

Public function Virtual

void

 

ReconstructNode()

Refresh the connectors on a node, preserving as many connections as it can.

Public function Virtual Const

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

Name Description

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Handles reading, writing, and reference collecting using FArchive.

Constants

Name

Description

ComponentTemplateNamePrefix

Prefix used for component template object name.

NAME_ManualAttachment

NAME_RelativeTransform