Module |
|
Header |
/Engine/Source/Runtime/Foliage/Public/FoliageStatistics.h |
Include |
#include "FoliageStatistics.h" |
Source |
/Engine/Source/Runtime/Foliage/Private/FoliageStatistics.cpp |
static int32 FoliageOverlappingSphereCount
(
UObject * WorldContextObject,
const UStaticMesh * StaticMesh,
FVector CenterPosition,
float Radius
)
Counts how many foliage instances overlap a given sphere
return number of foliage instances with their mesh set to Mesh that overlap the sphere
Parameter |
Description |
---|---|
Mesh |
The static mesh we are interested in counting |
CenterPosition |
The center position of the sphere |
Radius |
The radius of the sphere. |