Navigation
API > API/Plugins > API/Plugins/TextureGraph
Clamp.
| Name | UTG_Expression_Clamp |
| Type | class |
| Header File | /Engine/Plugins/TextureGraph/Source/TextureGraph/Public/Expressions/Maths/TG_Expression_Clamp.h |
| Include Path | #include "Expressions/Maths/TG_Expression_Clamp.h" |
Syntax
UCLASS ()
class UTG_Expression_Clamp : public UTG_Expression_Variant
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UTG_Expression → UTG_Expression_Variant → UTG_Expression_Clamp
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Input | FTG_Variant | The input image to clamp. | Expressions/Maths/TG_Expression_Clamp.h |
|
| MaxValue | FTG_Variant | The desired max value (defaults to 1/white) | Expressions/Maths/TG_Expression_Clamp.h |
|
| MinValue | FTG_Variant | The desired min value (defaults to 0/black) | Expressions/Maths/TG_Expression_Clamp.h |
|
Functions
Public
Overridden from UTG_Expression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FName GetCategory() |
Expressions/Maths/TG_Expression_Clamp.h | ||
virtual FText GetTooltipText() |
Expressions/Maths/TG_Expression_Clamp.h |
Protected
Overridden from UTG_Expression_Variant
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool ErrorCheckInputTextures () |
Only override this if you don't want use the base class error handling (which is quite strict out of the box). | Expressions/Maths/TG_Expression_Clamp.h | |
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_Clamp.h | |
virtual FTG_Texture EvaluateTexture
(
FTG_EvaluationContext* InContext |
Expressions/Maths/TG_Expression_Clamp.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_Clamp.h |