unreal.PaperTerrainMaterialRule
¶
- class unreal.PaperTerrainMaterialRule¶
Bases:
StructBase
Rule for a single section of a terrain material
C++ Source:
Plugin: Paper2D
Module: Paper2D
File: PaperTerrainMaterial.h
Editor Properties: (see get_editor_property/set_editor_property)
body
(Array[PaperSprite]): [Read-Write] Body: A set of sprites to randomly choose to fill up the interior space between the caps in a terrain segmentcollision_offset
(float): [Read-Write] Collision Offset: How much should the collision be lofted from the spline (positive values go out from the spline, negative values go in to the spline)description
(Text): [Read-Write] Description: Readable description for the rule (unused anywhere, just for clarity when editing the material)draw_order
(int32): [Read-Write] Draw Order: Specify a draw order for different materials in a spline. Smaller draw orders are drawn first, negative values are allowed.enable_collision
(bool): [Read-Write] Enable Collision: If true, collision is enabled for sections matching this ruleend_cap
(PaperSprite): [Read-Write] End Cap: The sprite to use at the ‘right’ (closest to spline end) edge of the terrain segmentmaximum_angle
(float): [Read-Write] Maximum Angle: Maximum slope angle (in degrees) to apply this ruleminimum_angle
(float): [Read-Write] Minimum Angle: Minimum slope angle (in degrees) to apply this rulestart_cap
(PaperSprite): [Read-Write] Start Cap: The sprite to use at the ‘left’ (closest to spline start) edge of the terrain segment