Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Landscape/Classes/LandscapeComponent.h |
Include |
#include "LandscapeComponent.h" |
struct FLandscapeComponentGrassData
Name | Description | ||
---|---|---|---|
|
bIsDirty |
Grass data was updated but not saved yet. |
|
|
HeightMipData |
Height data for LODs 1+, keyed on LOD index. |
|
|
HeightWeightData |
||
|
MaterialStateIds |
Guid per material instance in the hierarchy between the assigned landscape material (instance) and the root UMaterial used to detect changes to material instance parameters or the root material that could affect the grass maps |
|
|
NumElements |
Elements per contiguous array: for validation and also to indicate whether the grass data is valid (NumElements >= 0, meaning 0 elements is valid but the grass data is all zero and therefore empty) or not known yet (== UnknownNumElements) |
|
|
RotationForWPO |
Cached component rotation when material world-position-offset is used, as this will affect the direction of world-position-offset deformation (included in the HeightData below) |
|
|
WeightOffsets |
Serialized in one block to prevent Slack waste. |
Name | Description | |
---|---|---|
|
FLandscapeComponentGrassData() |
|
|
FLandscapeComponentGrassData ( |
Name | Description | ||
---|---|---|---|
|
ConditionalDiscardDataOnLoad() |
Check whether we can discard any data not needed with current scalability settings. |
|
|
Contains ( |
||
|
GetAllocatedSize() |
||
|
TArrayView< ... |
GetHeightData() |
|
|
TArrayView< ... |
GetWeightData ( |
|
|
HasData() |
Returns whether the data is completely empty (e.g. all-zero weightmap data). Returns false if the data just wasn't computed yet : |
|
|
HasValidData() |
Returns whether grass data has been computed (or serialized) yet. Returns true even if the data is completely empty (e.g. all-zero weightmap data) |
|
|
HasWeightData() |
||
|
InitializeFrom ( |
Name |
Description |
---|---|
UnknownNumElements |