Navigation
API > API/Plugins > API/Plugins/Paper2D
Rule for a single section of a terrain material.
| Name | FPaperTerrainMaterialRule |
| Type | struct |
| Header File | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperTerrainMaterial.h |
| Include Path | #include "PaperTerrainMaterial.h" |
Syntax
USTRUCT (BlueprintType )
struct FPaperTerrainMaterialRule
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPaperTerrainMaterialRule() |
PaperTerrainMaterial.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bEnableCollision | bool | If true, collision is enabled for sections matching this rule. | PaperTerrainMaterial.h |
|
| Body | TArray< TObjectPtr< class UPaperSprite > > | A set of sprites to randomly choose to fill up the interior space between the caps in a terrain segment. | PaperTerrainMaterial.h |
|
| CollisionOffset | float | How much should the collision be lofted from the spline (positive values go out from the spline, negative values go in to the spline) | PaperTerrainMaterial.h |
|
| Description | FText | Readable description for the rule (unused anywhere, just for clarity when editing the material) | PaperTerrainMaterial.h |
|
| DrawOrder | int32 | Specify a draw order for different materials in a spline. Smaller draw orders are drawn first, negative values are allowed. | PaperTerrainMaterial.h |
|
| EndCap | TObjectPtr< class UPaperSprite > | The sprite to use at the 'right' (closest to spline end) edge of the terrain segment. | PaperTerrainMaterial.h |
|
| MaximumAngle | float | Maximum slope angle (in degrees) to apply this rule. | PaperTerrainMaterial.h |
|
| MinimumAngle | float | Minimum slope angle (in degrees) to apply this rule. | PaperTerrainMaterial.h |
|
| StartCap | TObjectPtr< class UPaperSprite > | The sprite to use at the 'left' (closest to spline start) edge of the terrain segment. | PaperTerrainMaterial.h |
|