Navigation
API > API/Runtime > API/Runtime/Foliage > API/Runtime/Foliage/UFoliageStatistics
References
| Module | Foliage |
| Header | /Engine/Source/Runtime/Foliage/Public/FoliageStatistics.h |
| Include | #include "FoliageStatistics.h" |
| Source | /Engine/Source/Runtime/Foliage/Private/FoliageStatistics.cpp |
static int32 FoliageOverlappingSphereCount
&40;
UObject &42; WorldContextObject,
const UStaticMesh &42; StaticMesh,
FVector CenterPosition,
float Radius
&41;
Remarks
Counts how many foliage instances overlap a given sphere
return number of foliage instances with their mesh set to Mesh that overlap the sphere
Parameters
| Name | Description |
|---|---|
| Mesh | The static mesh we are interested in counting |
| CenterPosition | The center position of the sphere |
| Radius | The radius of the sphere. |