Navigation
API > API/Runtime > API/Runtime/Foliage > API/Runtime/Foliage/UProceduralFoliageTile
Description
Finds all the instances within an AABB. The instances are returned in the space local to the AABB. That is, an instance in the bottom left AABB will have a coordinate of (0,0).
| Name | GetInstancesInAABB |
| Type | function |
| Header File | /Engine/Source/Runtime/Foliage/Public/ProceduralFoliageTile.h |
| Include Path | #include "ProceduralFoliageTile.h" |
| Source | /Engine/Source/Runtime/Foliage/Private/ProceduralFoliageTile.cpp |
void GetInstancesInAABB
(
const FBox2D & LocalAABB,
TArray< FProceduralFoliageInstance * > & OutInstances,
bool bFullyContainedOnly
) const
Parameters
| Name | Remarks |
|---|---|
| LocalAABB | The AABB to get instances within |
| OutInstances | Contains the instances within the specified AABB |
| bFullyContainedOnly | If true, will only get instances that are fully contained within the AABB |