UFoliageStatistics::FoliageOverlappingSphereCount

Counts how many foliage instances overlap a given sphere

Windows
MacOS
Linux

References

Module

Foliage

Header

/Engine/Source/Runtime/Foliage/Public/FoliageStatistics.h

Include

#include "FoliageStatistics.h"

Source

/Engine/Source/Runtime/Foliage/Private/FoliageStatistics.cpp

Syntax

static int32 FoliageOverlappingSphereCount
(
    UObject * WorldContextObject,
    const UStaticMesh * StaticMesh,
    FVector CenterPosition,
    float Radius
)

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

Parameter

Description

Mesh

The static mesh we are interested in counting

CenterPosition

The center position of the sphere

Radius

The radius of the sphere.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss