UFoliageStatistics

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Foliage

Header

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

Include

#include "FoliageStatistics.h"

Syntax

class UFoliageStatistics : public UBlueprintFunctionLibrary

Constructors

Name Description

Public function

UFoliageStatistics

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static

int32

 

FoliageOverlappingBoxCount

(
    UObject* WorldContextObject,
    const UStaticMesh* StaticMesh,
    FBox Box
)

Gets the number of instances overlapping a provided box

Public function Static

void

 

FoliageOverlappingBoxTransforms

(
    UObject* WorldContextObject,
    const UStaticMesh* StaticMesh,
    FBox Box,
    TArray< FTransform >& OutTransform...
)

Get the transform of every instance overlapping the provided FBox

Public function Static

void

 

FoliageOverlappingMeshCounts_Debug

(
    UObject* WorldContextObject,
    FVector CenterPosition,
    float Radius,
    TMap< UStaticMesh*, int32 >& ...
)

DEBUG FUNCTION: This is not fast, use only for debug/development.

Public function Static

int32

 

FoliageOverlappingSphereCount

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

Counts how many foliage instances overlap a given sphere