UHierarchicalInstancedStaticMeshComponent::GetInstancesOverlappingSphere

Returns the instances with instance bounds overlapping the specified sphere.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UInstancedStaticMeshComponent::GetInstancesOverlappingSphere()

UHierarchicalInstancedStaticMeshComponent::GetInstancesOverlappingSphere()

References

Module

Engine

Header

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

Include

#include "Components/HierarchicalInstancedStaticMeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/HierarchicalInstancedStaticMesh.cpp

Syntax

virtual TArray< int32 > GetInstancesOverlappingSphere
(
    const FVector & Center,
    float Radius,
    bool bSphereInWorldSpace
) const

Remarks

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