Navigation
API > API/Plugins > API/Plugins/TextureGraph > API/Plugins/TextureGraph/Expressions > API/Plugins/TextureGraph/Expressions/Utilities
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UTG_Expression
- UTG_Expression_MaterialID
References
| Module | TextureGraph |
| Header | /Engine/Plugins/Experimental/TextureGraph/Source/TextureGraph/Public/Expressions/Utilities/TG_Expression_MaterialID.h |
| Include | #include "Expressions/Utilities/TG_Expression_MaterialID.h" |
Syntax
UCLASS ()
class UTG_Expression_MaterialID : public UTG_Expression
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FLinearColor > | ActiveColors | ||
| int32 | ActiveColorsCount | ||
| FMaterialIDCollection | MaterialIDInfoCollection | ||
| FTG_Texture | MaterialIDMap | ||
| TArray< FMaterialIDMaskInfo > | MaterialIDMaskInfos | List of available colors extracted from the input texture. Selected colors will be shown as white in the output texture. | |
| FTG_Texture | Output | The output of the node, which is the loaded texture asset. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | SetMaterialIdMask
(
int32 Id, |
Overridden from UTG_Expression
| Type | Name | Description | |
|---|---|---|---|
| void | Evaluate
(
FTG_EvaluationContext* InContext |
This is THE evaluation call to overwrite. | |
| FName | GetCategory () |
||
| FTG_Name | |||
| FTG_SignaturePtr | GetSignature () |
||
| FText | |||
| void | Initialize () |
Initialize the expression in cascade from the node allowing it to re create transient data This is called in the PostLoad of the Graph |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |