Navigation
API > API/Plugins > API/Plugins/TextureGraph
A Node in the graph Created from the graph Expose the Input and Output pins
UTG_Node is created from a UTG_Graph
| Name | UTG_Node |
| Type | class |
| Header File | /Engine/Plugins/TextureGraph/Source/TextureGraph/Public/TG_Node.h |
| Include Path | #include "TG_Node.h" |
Syntax
UCLASS (MinimalAPI)
class UTG_Node : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UTG_Node
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| EditorData | FTG_NodeEditorData | TG_Node.h | ||
| Pins | TArray< TObjectPtr< UTG_Pin > > | Accessors for pins of the node All the pins are stored packed in the |
TG_Node.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Expression | TObjectPtr< UTG_Expression > | Note: This property is assigned at construction of the node in the Construct call. | TG_Node.h | |
| Id | FTG_Id | Assigned by Graph and restored postLoad. | TG_Node.h |
|
| Signature | TSharedPtr< FTG_Signature > | TG_Node.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 ForEachInputPins
(
std::function< void(const UTG_Pin*, uint32)> visitor |
Iterate through all the Input OR Output pins in this node, return the number traversed. | TG_Node.h | |
int32 ForEachOutputPins
(
std::function< void(const UTG_Pin*, uint32)> visitor |
TG_Node.h | ||
int GetAllOutputValues
(
TArray< FTG_Texture >& OutTextures, |
Get all the output's values which are compatible with FTG_Texture along with their names optionally | TG_Node.h | |
int GetAllOutputValues
(
TArray< FTG_Variant >& OutVariants, |
Accessors for output values after evaluation Only valid AFTER Evaluation of the graph Get all the output's values which are compatible with FTG_Variant along with their names optionally | TG_Node.h | |
UTG_Expression * GetExpression() |
The expression owned by this node. | TG_Node.h | |
FTG_Variant::EType GetExpressionCommonInputVariantType() |
Get the current common input variant type of the expression only valid for expression with FTG_Variant arguments | TG_Node.h | |
UTG_Graph * GetGraph() |
The Graph in which this node exists. | TG_Node.h | |
FTG_Id GetId() |
Get the Uuid for this node. | TG_Node.h | |
UTG_Pin * GetInputPin
(
FTG_Name& name |
TG_Node.h | ||
UTG_Pin * GetInputPinAt
(
FTG_Index inIndex |
TG_Node.h | ||
FTG_Id GetInputPinID
(
FTG_Name& Name |
TG_Node.h | ||
FTG_Id GetInputPinIdAt
(
FTG_Index inIndex |
Get pin Id from index in each scope. | TG_Node.h | |
| TG_Node.h | |||
int32 GetInputPins
(
TArray< const UTG_Pin* >& OutPins |
Collect the input / output pins. | TG_Node.h | |
int32 GetInputPins
(
TArray< UTG_Pin* >& OutPins |
TG_Node.h | ||
| TG_Node.h | |||
FTG_Name GetNodeName() |
Node name is the title name of the inner expression. | TG_Node.h | |
UTG_Pin * GetOutputPin
(
FTG_Name& name |
TG_Node.h | ||
UTG_Pin * GetOutputPinAt
(
FTG_Index outIndex |
TG_Node.h | ||
FTG_Id GetOutputPinID
(
FTG_Name& Name |
TG_Node.h | ||
FTG_Id GetOutputPinIdAt
(
FTG_Index outIndex |
TG_Node.h | ||
| TG_Node.h | |||
int32 GetOutputPins
(
TArray< UTG_Pin* >& OutPins |
TG_Node.h | ||
int32 GetOutputPins
(
TArray< const UTG_Pin* >& OutPins |
TG_Node.h | ||
| TG_Node.h | |||
| TG_Node.h | |||
| TG_Node.h | |||
| Get/Find the Pin Id for Pins of this Node from its Argument Name. | TG_Node.h | ||
UTG_Pin * GetPrivatePin
(
FTG_Name& name |
TG_Node.h | ||
UTG_Pin * GetPrivatePinAt
(
FTG_Index privateIndex |
TG_Node.h | ||
FTG_Id GetPrivatePinID
(
FTG_Name& Name |
TG_Node.h | ||
FTG_Id GetPrivatePinIdAt
(
FTG_Index privateIndex |
TG_Node.h | ||
| TG_Node.h | |||
const FTG_Signature & GetSignature() |
Signature of the node and predicates about the pins of the node. | TG_Node.h | |
bool HasInputs() |
TG_Node.h | ||
bool HasOutputs() |
TG_Node.h | ||
bool HasPrivates() |
TG_Node.h | ||
bool IsInputParam() |
TG_Node.h | ||
bool IsOutputParam() |
TG_Node.h | ||
bool IsParam() |
TG_Node.h | ||
FString LogHead() |
TG_Node.h | ||
| TG_Node.h | |||
void OnPinConnectionUndo
(
FTG_Id InPinId |
TG_Node.h | ||
virtual bool Validate
(
MixUpdateCyclePtr Cycle |
Validate internal checks, warnings and errors. | TG_Node.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Serialize
(
FArchive& Ar |
Override Serialize method of UObject. | TG_Node.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Return the array of alias name of all the pins Can be filtered based on the argument access type bitfield Default is not filtered, aka AccessFilter is 0 | TG_Node.h | ||
void NotifyGraphOfNodeChange
(
bool bIsTweaking |
Trigger notification to the graph that the node pin's value (default input or output) has changed | TG_Node.h | |
void OnExpressionChangedWithoutVar
(
const FPropertyChangedEvent& PropertyChangedEvent |
TG_Node.h | ||
| TG_Node.h | |||
| TG_Node.h | |||
void OnPostUndo() |
TG_Node.h | ||
void OnSignatureChanged() |
TG_Node.h | ||
void ValidateGenerateConformer
(
UTG_Pin* NewPin |
Validate that the node conforms to a conformant function coming from the Expression. | TG_Node.h | |
FName ValidateGeneratePinAliasName
(
FName CandidateName, |
Check that a candidate Pin's alias name is unique in the Node's Pins And in the Graph's Param Pins if it is a Param. | TG_Node.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
TG_Node.h | ||
virtual void PostEditUndo() |
TG_Node.h |