Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/ULandscapeComponent
Description
Returns the array of grass types used by the landscape material. Call UpdateGrassTypes first to ensure this array is up to date.
| Name | GetGrassTypes |
| Type | function |
| Header File | /Engine/Source/Runtime/Landscape/Classes/LandscapeComponent.h |
| Include Path | #include "LandscapeComponent.h" |
| Source | /Engine/Source/Runtime/Landscape/Private/Landscape.cpp |
TArray < TObjectPtr < ULandscapeGrassType > > GetGrassTypes() const