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 |
UFUNCTION (BlueprintCallable, Category="Foliage",
Meta=(WorldContext="WorldContextObject", UnsafeDuringActorConstruction="true"))
static int32 FoliageOverlappingBoxCount
(
UObject * WorldContextObject,
const UStaticMesh * StaticMesh,
FBox Box
)
Remarks
Gets the number of instances overlapping a provided box
Parameters
| Name | Description |
|---|---|
| StaticMesh | Mesh to count |
| Box | Box to overlap |