Navigation
API > API/Runtime > API/Runtime/Foliage > API/Runtime/Foliage/UFoliageStatistics
Description
Counts how many foliage instances overlap a given sphere
return number of foliage instances with their mesh set to Mesh that overlap the sphere
| Name | FoliageOverlappingSphereCount |
| Type | function |
| Header File | /Engine/Source/Runtime/Foliage/Public/FoliageStatistics.h |
| Include Path | #include "FoliageStatistics.h" |
| Source | /Engine/Source/Runtime/Foliage/Private/FoliageStatistics.cpp |
UFUNCTION (BlueprintCallable, Category="Foliage",
Meta=(WorldContext="WorldContextObject", UnsafeDuringActorConstruction="true"))
static int32 FoliageOverlappingSphereCount
(
UObject * WorldContextObject,
const UStaticMesh * StaticMesh,
FVector CenterPosition,
float Radius
)
Parameters
| Name | Remarks |
|---|---|
| Mesh | The static mesh we are interested in counting |
| CenterPosition | The center position of the sphere |
| Radius | The radius of the sphere. |