UK2Node_ConstructObjectFromClass

Unreal Engine C++ API Reference > Editor > BlueprintGraph

Inheritance Hierarchy

References

   
Module BlueprintGraph
Header /Engine/Source/Editor/BlueprintGraph/Classes/K2Node_ConstructObjectFromClass.h
Include #include "K2Node_ConstructObjectFromClass.h"

Syntax

class UK2Node_ConstructObjectFromClass : public [UK2Node](API\Editor\BlueprintGraph\UK2Node)  

Variables

Type Name Description
FNodeTextCache CachedNodeTitle Constructing FText strings can be costly, so we cache the node's title
FText NodeTooltip Tooltip text for this node.

Constructors

Type Name Description
  UK2Node_ConstructObjectFromClass ( const FObjectInitializer& ObjectIn... )  

Functions

Type Name Description
void CreatePinsForClass ( UClass* InClass, TArray< UEdGraphPin* >* O... ) Create new pins to show properties on archetype
FText GetBaseNodeTitle () Gets the node for use in lists and menus
UEdGraphPin ... GetClassPin ( const TArray< UEdGraphPin* >&... ) Get the blueprint input pin
UClass * GetClassPinBaseClass () Gets base class to use for the 'class' pin.
UClass * GetClassToSpawn ( const TArray< UEdGraphPin* >&... ) Get the class that we are going to spawn, if it's defined as default value
FText GetDefaultNodeTitle () Gets the default node title when no class is selected
FText GetNodeTitleFormat () Gets the node title when a class has been selected.
UEdGraphPin ... GetOuterPin () Get the result input pin
UEdGraphPin ... GetResultPin () Get the result output pin
UEdGraphPin ... GetThenPin () Get the then output pin
UEdGraphPin ... GetWorldContextPin () Get the world context input pin, can return NULL
bool IsCompatibleWithGraph ( const UEdGraph* TargetGraph )  
bool IsSpawnVarPin ( UEdGraphPin* Pin ) See if this is a spawn variable pin, or a 'default' pin
void OnClassPinChanged () Refresh pins when class was changed
void SetPinToolTip ( UEdGraphPin& MutatablePin, const FText& PinDescription ) Takes the specified "MutatablePin" and sets its 'PinToolTip' field (according to the specified description)
bool UseOuter () Returns if the node uses Outer input
bool UseWorldContext () Returns if the node uses World Object Context input

Overridden from UK2Node

Type Name Description
ERedirectTyp... DoPinsMatchForReconstruction ( const UEdGraphPin* NewPin, int32 NewPinIndex, const UEdGraphPin* OldPin, int32 OldPinIndex ) Whether or not two pins match for purposes of reconnection after reconstruction.
void GetMenuActions ( FBlueprintActionDatabaseRegistrar&... ) Replacement for GetMenuEntries().
FText GetMenuCategory () Override to provide a default category for specific node types to be listed under.
void GetNodeAttributes ( TArray< TKeyValuePair< FString, FSt... ) This function returns an arbitrary number of attributes that describe this node for analytics events
bool IsNodeSafeToIgnore () Query if this is a node that is safe to ignore (e.g., a comment node or other non-structural annotation that can be pruned with no warnings).
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

Type Name Description
void AddSearchMetaDataInfo ( TArray< struct FSearchTagDataPair >... ) Add's node data to the search metadata, override to collect more data that may be desirable to search for
void AllocateDefaultPins () Allocate default pins for a given node, based only the NodeType, which should already be filled in.
FText GetKeywords () Returns the keywords that should be used when searching for this node
FText GetNodeTitle ( ENodeTitleType::Type TitleType ) Gets the name of this node, shown in title bar
void GetPinHoverText ( const UEdGraphPin& Pin, FString& HoverTextOut ) Fetch the hover text for a pin when the graph is being edited.
FString GetPinMetaData ( FName InPinName, FName InKey ) Return the requested metadata for the pin if there is any
FText GetTooltipText () Gets the tooltip to display when over the node
bool HasExternalDependencies ( TArray< class UStruct* >*... ) Returns whether or not this node has dependencies on an external structure If OptionalOutput isn't null, it should be filled with the known dependencies objects (Classes, Structures, Functions, etc).
void PinConnectionListChanged ( UEdGraphPin* Pin ) Called when the connection list of one of the pins of this node is changed in the editor
void PinDefaultValueChanged ( UEdGraphPin* Pin ) Called when the DefaultValue of one of the pins of this node is changed in the editor
void PostPlacedNewNode () A chance to initialize a new node; called just once when a new node is created, before AutowireNewNode or AllocateDefaultPins is called.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library