UInstancedStaticMeshComponent::GetInstancesOverlappingBox

Returns the instances with instance bounds overlapping the specified box.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UInstancedStaticMeshComponent::GetInstancesOverlappingBox()

UHierarchicalInstancedStaticMeshComponent::GetInstancesOverlappingBox()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/InstancedStaticMeshComponent.h

Include

#include "Components/InstancedStaticMeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/InstancedStaticMesh.cpp

Syntax

virtual TArray< int32 > GetInstancesOverlappingBox
(
    const FBox & Box,
    bool bBoxInWorldSpace
) const

Remarks

Returns the instances with instance bounds overlapping the specified box. The return value is an array of instance indices.