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