FGrassVariety

Windows
MacOS
Linux

References

Module

Landscape

Header

/Engine/Source/Runtime/Landscape/Classes/LandscapeGrassType.h

Include

#include "LandscapeGrassType.h"

Syntax

struct FGrassVariety

Variables

Name Description

Public variable

bool

 

AlignToSurface

Whether the grass instances should be tilted to the normal of the landscape (true), or always vertical (false)

Public variable

bool

 

bCastDynamicShadow

Whether the grass should cast shadows when using non-precomputed shadowing.

Public variable

bool

 

bKeepInstanceBufferCPUCopy

Whether we should keep a cpu copy of the instance buffer.

Public variable

bool

 

bReceivesDecals

Whether the grass instances should receive decals.

Public variable

bool

 

bUseGrid

If true, use a jittered grid sequence for placement, otherwise use a halton sequence.

Public variable

bool

 

bUseLandscapeLightmap

Whether to use the landscape's lightmap when rendering the grass.

Public variable

FPerPlatformInt

 

EndCullDistance

The distance where instances will have completely faded out when using a PerInstanceFadeAmount material node.

Public variable

FPerPlatformFlo...

 

GrassDensity

Instances per 10 square meters.

Public variable

UStaticMesh ...

 

GrassMesh

Public variable

FLightingChanne...

 

LightingChannels

Lighting channels that the grass will be assigned.

Public variable

int32

 

MinLOD

Specifies the smallest LOD that will be used for this component.

Public variable

float

 

PlacementJitter

Public variable

bool

 

RandomRotation

Whether the grass instances should be placed at random rotation (true) or all at the same rotation (false)

Public variable

FFloatInterval

 

ScaleX

Specifies the range of scale, from minimum to maximum, to apply to a grass instance's X Scale property

Public variable

FFloatInterval

 

ScaleY

Specifies the range of scale, from minimum to maximum, to apply to a grass instance's Y Scale property

Public variable

FFloatInterval

 

ScaleZ

Specifies the range of scale, from minimum to maximum, to apply to a grass instance's Z Scale property

Public variable

EGrassScaling

 

Scaling

Specifies grass instance scaling type

Public variable

FPerPlatformInt

 

StartCullDistance

The distance where instances will begin to fade out if using a PerInstanceFadeAmount material node.

Constructors

Name Description

Public function

FGrassVariety()

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