Navigation
API > API/Runtime > API/Runtime/GeometryCore
Base Stair mesh generator class.
| Name | FStairGenerator |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Generators/StairGenerator.h |
| Include Path | #include "Generators/StairGenerator.h" |
Syntax
class FStairGenerator : public UE::Geometry::FMeshShapeGenerator
Inheritance Hierarchy
- FMeshShapeGenerator → FStairGenerator
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FStairGenerator() |
FStairGenerator | Generators/StairGenerator.h |
Enums
Public
| Name | Remarks |
|---|---|
| ESide |
Protected
| Name | Remarks |
|---|---|
| EStairStyle |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bPolygroupPerQuad | bool | If true, each quad of box gets a separate polygroup | Generators/StairGenerator.h | |
| bScaleUVByAspectRatio | bool | If true (default), UVs are scaled so that there is no stretching. | Generators/StairGenerator.h | |
| NumSteps | int | The number of steps in this staircase. | Generators/StairGenerator.h | |
| StepHeight | float | The height of each step. | Generators/StairGenerator.h | |
| StepWidth | float | The width of each step. | Generators/StairGenerator.h |
Functions
Public
Overridden from FMeshShapeGenerator
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FMeshShapeGenerator & Generate() |
Generate the mesh | Generators/StairGenerator.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVector3f GenerateNormal
(
ESide Side, |
Returns a vertex normal vector. | Generators/StairGenerator.h | |
FVector2f GenerateUV
(
ESide Side, |
Returns a UV vector. | Generators/StairGenerator.h | |
FVector3d GenerateVertex
(
ESide Side, |
Returns a vertex position. | Generators/StairGenerator.h | |
float GetMaxDimension() |
Returns the max dimension of the staircase for the purposes of computing the world UV scale. | Generators/StairGenerator.h | |
virtual void ResetData () |
Reset state data on the generator | Generators/StairGenerator.h |