Navigation
API > API/Plugins > API/Plugins/TextureGraph
Expression.
| Name | UTG_Expression_IfThenElse |
| Type | class |
| Header File | /Engine/Plugins/TextureGraph/Source/TextureGraph/Public/Expressions/Maths/TG_Expression_IfThenElse.h |
| Include Path | #include "Expressions/Maths/TG_Expression_IfThenElse.h" |
Syntax
UCLASS (MinimalAPI)
class UTG_Expression_IfThenElse : public UTG_Expression_Variant
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UTG_Expression → UTG_Expression_Variant → UTG_Expression_IfThenElse
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ComparisonType | TEnumAsByte< EIfThenElseType > | 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. | Expressions/Maths/TG_Expression_IfThenElse.h |
|
| Else | FTG_Variant | The value to return if the comparison is unsuccessful if ( |
Expressions/Maths/TG_Expression_IfThenElse.h |
|
| LHS | FTG_Variant | The LHS value for the comparison (LHS |
Expressions/Maths/TG_Expression_IfThenElse.h |
|
| Operator | TEnumAsByte< EIfThenElseOperator > | The type of operator in LHS |
Expressions/Maths/TG_Expression_IfThenElse.h |
|
| RHS | FTG_Variant | The RHS value for the comparison (LHS |
Expressions/Maths/TG_Expression_IfThenElse.h |
|
| Then | FTG_Variant | The value to return if the comparison is successful if ( |
Expressions/Maths/TG_Expression_IfThenElse.h |
|
Functions
Public
Overridden from UTG_Expression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FName GetCategory() |
Expressions/Maths/TG_Expression_IfThenElse.h | ||
virtual FText GetTooltipText() |
Expressions/Maths/TG_Expression_IfThenElse.h |
Protected
Overridden from UTG_Expression_Variant
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual float EvaluateScalar_WithValue
(
FTG_EvaluationContext* InContext, |
Most of the time these are the two functions that expressions will need to implement. | Expressions/Maths/TG_Expression_IfThenElse.h | |
virtual FTG_Texture EvaluateTexture
(
FTG_EvaluationContext* InContext |
Expressions/Maths/TG_Expression_IfThenElse.h | ||
virtual 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. | Expressions/Maths/TG_Expression_IfThenElse.h | |
virtual std::vector< FTG_Variant > GetEvaluateArgs () |
If you use the basic structure of variant expression then you'll need to implement this correctly. | Expressions/Maths/TG_Expression_IfThenElse.h |