Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UInstancedStaticMeshComponent
- UInstancedStaticMeshComponent::GetInstancesOverlappingSphere()
- UHierarchicalInstancedStaticMeshComponent::GetInstancesOverlappingSphere()
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 |
UFUNCTION (BlueprintCallable, Category="Components|InstancedStaticMesh")
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.