unreal.FoliageStatistics

class unreal.FoliageStatistics(outer=None, name='None')

Bases: unreal.BlueprintFunctionLibrary

Foliage Statistics

C++ Source:

  • Module: Foliage

  • File: FoliageStatistics.h

classmethod foliage_overlapping_box_count(world_context_object, static_mesh, box) → int32

Gets the number of instances overlapping a provided box

Parameters
  • world_context_object (Object) –

  • static_mesh (StaticMesh) – Mesh to count

  • box (Box) – Box to overlap

Returns

Return type

int32

classmethod foliage_overlapping_sphere_count(world_context_object, static_mesh, center_position, radius) → int32

Counts how many foliage instances overlap a given sphere

Parameters
  • world_context_object (Object) –

  • static_mesh (StaticMesh) –

  • center_position (Vector) – The center position of the sphere

  • radius (float) – The radius of the sphere. return number of foliage instances with their mesh set to Mesh that overlap the sphere

Returns

Return type

int32