FPaperTerrainMaterialRule

Rule for a single section of a terrain material.

Windows
MacOS
Linux

References

Module

Paper2D

Header

/Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperTerrainMaterial.h

Include

#include "PaperTerrainMaterial.h"

Syntax

[USTRUCT](Programming/UnrealArchitecture/Reference/Structs)([BlueprintType](Programming/UnrealArchitecture/Reference/Structs/Specifiers/BlueprintType))
struct FPaperTerrainMaterialRule

Remarks

Rule for a single section of a terrain material.

Variables

Name Description

Public variable UProperty Category, EditAnywhere

bool

 

bEnableCollision

If true, collision is enabled for sections matching this rule.

Public variable UProperty Category, EditAnywhere, Meta

TArray< class U...

 

Body

A set of sprites to randomly choose to fill up the interior space between the caps in a terrain segment.

Public variable UProperty Category, EditAnywhere

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)

Public variable UProperty Category, EditAnywhere

FText

 

Description

Readable description for the rule (unused anywhere, just for clarity when editing the material)

Public variable UProperty Category, EditAnywhere

int32

 

DrawOrder

Specify a draw order for different materials in a spline. Smaller draw orders are drawn first, negative values are allowed.

Public variable UProperty Category, EditAnywhere, Meta

UPaperSprite &#...

 

EndCap

The sprite to use at the 'right' (closest to spline end) edge of the terrain segment.

Public variable UProperty Category, EditAnywhere

float

 

MaximumAngle

Maximum slope angle (in degrees) to apply this rule.

Public variable UProperty Category, EditAnywhere

float

 

MinimumAngle

Minimum slope angle (in degrees) to apply this rule.

Public variable UProperty Category, EditAnywhere, Meta

UPaperSprite &#...

 

StartCap

The sprite to use at the 'left' (closest to spline start) edge of the terrain segment.

Constructors

Name Description

Public function

FPaperTerrainMaterialRule()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss