Navigation
API > API/Plugins > API/Plugins/TextureGraph
References
| Module | TextureGraph |
| Header | /Engine/Plugins/Experimental/TextureGraph/Source/TextureGraph/Public/TG_Variant.h |
| Include | #include "TG_Variant.h" |
Syntax
USTRUCT ()
struct FTG_Variant
Variables
| Type | Name | Description | |
|---|---|---|---|
| Variant | Data | The concrete data. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTG_Variant () |
|||
FTG_Variant
(
const FTG_Variant& RHS |
|||
FTG_Variant
(
float RHS |
|||
FTG_Variant
(
FVector4f RHS |
|||
FTG_Variant
(
FLinearColor RHS |
|||
FTG_Variant
(
FTG_Texture RHS |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FLinearColor & | EditColor () |
||
| float & | EditScalar () |
The editor methods are calling ResetTypeAs(expectedType) and thus the Variant will mutate to the expected type and assigned 0 | |
| FTG_Texture & | EditTexture () |
||
| FVector4f & | EditVector () |
||
| FName | GetArgNameFromType
(
ETG_VariantType InType |
Retrieve the FName associated to a varaint type used for Arg cpoptypename. | |
| FLinearColor | GetColor
(
FLinearColor Default |
||
| const FLinearColor & | GetColor () |
||
| FName | GetNameFromType
(
ETG_VariantType InType |
Retrieve the FName corresponding to a variant type. | |
| const float & | GetScalar () |
Getter and Editor The getter methods are valid ONLY if the type matches | |
| FTG_Texture | GetTexture
(
FTG_EvaluationContext* InContext, |
||
| const FTG_Texture & | GetTexture () |
||
| EType | GetType () |
Get the Type of the Variant, Scalar by default. | |
| ETG_VariantType | GetTypeFromName
(
const FName& InTypeName |
Retrieve the variant type value matching a FName Return Scalar if couldn't find a match | |
| FVector4f | |||
| const FVector4f & | GetVector () |
||
| bool | IsColor () |
||
| bool | |||
| bool | IsScalar () |
Helper predicates to narrow down the type of the variant. | |
| bool | Predicates. | ||
| bool | |||
| bool | IsTexture () |
||
| bool | |||
| bool | IsVector () |
||
| bool | ResetTypeAs
(
EType InType |
Reset the Variant to the specified type, If the type is changed, the value is reset to 0 return true if the type as mutated | |
| bool | |||
| EType | WhichCommonType
(
EType T0, |
Find the common type between 2. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FTG_Variant & | operator=
(
const FTG_Variant& RHS |
||
| FTG_Variant & | operator=
(
const float RHS |
||
| FTG_Variant & | |||
| FTG_Variant & | operator=
(
const FTG_Texture RHS |
||
| FTG_Variant & | operator=
(
const FLinearColor RHS |
||
| bool | operator==
(
const FTG_Variant& RHS |