Navigation
API > API/Plugins > API/Plugins/TextureGraph > API/Plugins/TextureGraph/Expressions > API/Plugins/TextureGraph/Expressions/Maths
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UTG_Expression
- UTG_Expression_Variant
- UTG_Expression_IfThenElse
References
| Module | TextureGraph |
| Header | /Engine/Plugins/Experimental/TextureGraph/Source/TextureGraph/Public/Expressions/Maths/TG_Expression_IfThenElse.h |
| Include | #include "Expressions/Maths/TG_Expression_IfThenElse.h" |
Syntax
UCLASS ()
class UTG_Expression_IfThenElse : public UTG_Expression_Variant
Remarks
Expression.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TEnumAsByte< EIfThenElseType > | ComparisonType | The type of comparison to use. Individual = IndividualComponent of the components are individually passed through the comparison. AllComponents = All components must succeed check to trigger the Then part of the statement. Magnitude = Grayscale value of the color is used in comparison. | |
| FTG_Variant | Else | The value to return if the comparison is unsuccessful if ( |
|
| FTG_Variant | LHS | The LHS value for the comparison (LHS |
|
| TEnumAsByte< EIfThenElseOperator > | Operator | The type of operator in LHS |
|
| FTG_Variant | RHS | The RHS value for the comparison (LHS |
|
| FTG_Variant | Then | The value to return if the comparison is successful if ( |
Overridden from UTG_Expression_Variant
| Type | Name | Description | |
|---|---|---|---|
| float | EvaluateScalar_WithValue
(
FTG_EvaluationContext* InContext, |
Most of the time these are the two functions that expressions will need to implement. | |
| FTG_Texture | EvaluateTexture
(
FTG_EvaluationContext* InContext |
||
| FVector4f | EvaluateVector_WithValue
(
FTG_EvaluationContext* InContext, |
Evaluate vector only needs to be implemented if there vector handling isn't just a component-wise scalar handling. | |
| std::vector< FTG_Variant > | If you use the basic structure of variant expression then you'll need to implement this correctly. |
Overridden from UTG_Expression
| Type | Name | Description | |
|---|---|---|---|
| FName | GetCategory () |
||
| FText |