Instance overlap functions for foliage don't work in UE 5.0 [reported]

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 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
When calling HISM function, it prints the correct amount (14). If calling the Foliage ISM function, it missed many instances, in this case it prints only 3.

Update: You can track the issue here: Unreal Engine Issues and Bug Tracker (UE-149109)

Someone did find the cause and a temporary fix in this thread:

Thanks! I’ll check it out :slight_smile: