OnComponentEndOverlap() does not provide the same information as OnComponentBeginOverlap()

anonymous_user_44ea4ec1
Sun, 27 Dec 2015 16:26:33 +0000
World Creation

Hi,

I have a level defined by square cells. Each cell type is represented using UHierarchicalInstancedStaticMeshComponent.
Player character can destroy cells. It is possible to determine particular cell in OnComponentBeginOverlap() event because there is FHitResult SweepResult structure.
SweepResult.Component.Get() returns MeshComponent. SweepResult.Item allows to get individual cell instance.
In contrary OnComponentEndOverlap() has no FHitResult parameter. So it is impossible to find out individual cell instance which stopped overlapping with player.
GetOverlapInfos() does not seem to return valuable data. OverlapInfo.Item always -1.

8 posts - 1 participant