# 'Get Instances Overlapping Box/Sphere' not working as expected in UE 5.0

**URL:** <https://forums.unrealengine.com/t/get-instances-overlapping-box-sphere-not-working-as-expected-in-ue-5-0/530779>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 16, 2022, 7:20pm UTC](https://forums.unrealengine.com/t/get-instances-overlapping-box-sphere-not-working-as-expected-in-ue-5-0/530779 "2022-04-16T19:20:15Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [June 26, 2022, 7:46pm UTC](https://forums.unrealengine.com/t/get-instances-overlapping-box-sphere-not-working-as-expected-in-ue-5-0/530779/13 "2022-06-26T19:46:58Z")

</div>

Hey, thanks, it was me, it seems like a new issue in 5.0, more info:

> [@Instance overlap functions for foliage don't work in UE 5.0 \[reported\]](https://forums.unrealengine.com/t/instance-overlap-functions-for-foliage-dont-work-in-ue-5-0-reported/518664):
>
> If someone has issues with it, I’ve already reported it with a simple repro project. Case # 00424950: Instance overlap functions don’t work anymore for foliage (regression from UE5 EA) Basically, functions like [GetInstancesOverlappingSphere](https://docs.unrealengine.com/4.26/en-US/BlueprintAPI/Components/InstancedStaticMesh/GetInstancesOverlappingSphere/) don’t work when called on Foliage ISM component, but work correctly when called on regular ISM or HISM components. Edit: Link to the simple repro project: [Box](https://app.box.com/s/pmpjs84wi1xq5cfxklf8lm25ye2yvzva) When calling HISM function, it prints the correct amount (14). If calling the Foliage ISM functi…

---

_[View the full topic](https://forums.unrealengine.com/t/get-instances-overlapping-box-sphere-not-working-as-expected-in-ue-5-0/530779)._
