Navigation
API > API/Plugins > API/Plugins/TextureGraph
| Name | UTG_Expression_Shape |
| Type | class |
| Header File | /Engine/Plugins/TextureGraph/Source/TextureGraph/Public/Expressions/Procedural/TG_Expression_Shape.h |
| Include Path | #include "Expressions/Procedural/TG_Expression_Shape.h" |
Syntax
UCLASS ()
class UTG_Expression_Shape : public UTG_Expression
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UTG_Expression → UTG_Expression_Shape
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DefaultSize | int | Expressions/Procedural/TG_Expression_Shape.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BevelCurve | float | Bevel curve is controlling the shape of bevelling varying from concave to linear to convex. | Expressions/Procedural/TG_Expression_Shape.h |
|
| BevelWidth | float | Bevel width is the distance from the outline of the shape on which the bevelling function is applied to the generated mask. | Expressions/Procedural/TG_Expression_Shape.h |
|
| Height | float | Height representing the relative size of the shape in the generate texture. Height is used in Rectangle and ellipse. | Expressions/Procedural/TG_Expression_Shape.h |
|
| Orientation | float | Orientation is the 2D rotation of the shape around the center. | Expressions/Procedural/TG_Expression_Shape.h |
|
| Output | FTG_Texture | The output generated by the pattern. | Expressions/Procedural/TG_Expression_Shape.h |
|
| PolygonNumSides | int32 | The number of sides of the Polygon (only relevant when using the |
Expressions/Procedural/TG_Expression_Shape.h |
|
| Rounding | float | Rounding is about the 2D footprint of the shape generated, 0 means the perfect shape, 1 means the most rounded version of the shape. | Expressions/Procedural/TG_Expression_Shape.h |
|
| ShapeType | EShapeType | Select the geometric primitive shape to generate. | Expressions/Procedural/TG_Expression_Shape.h |
|
| ShowSDF | float | Signed distance function the mathematical function defining the distance to the edge of the shape. | Expressions/Procedural/TG_Expression_Shape.h |
|
| Width | float | Width representing the relative size of the shape in the generated texture. For Circle/Triangle/Pentagon hexagon and Polygon it is the radius of the shape relative to the uv domain of the generated texture. | Expressions/Procedural/TG_Expression_Shape.h |
|
Functions
Public
Overridden from UTG_Expression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Evaluate
(
FTG_EvaluationContext* InContext |
This is THE evaluation call to overwrite. | Expressions/Procedural/TG_Expression_Shape.h | |
virtual FName GetCategory() |
Expressions/Procedural/TG_Expression_Shape.h | ||
virtual FTG_SignaturePtr GetSignature() |
Expressions/Procedural/TG_Expression_Shape.h | ||
virtual FText GetTooltipText() |
Expressions/Procedural/TG_Expression_Shape.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanEditChange
(
const FProperty* InProperty |
Used to implement EditCondition logic for both Node UI and Details View. | Expressions/Procedural/TG_Expression_Shape.h |