My map has a destructible mesh (Geometry Collection). I want to spawn particles when parts of it start breaking or hit the ground.
It seems the object for this purpose is ChaosDestructionListener (Destruction Listener | Unreal Engine Documentation).
But I couldn’t find any description that explains how to use it. On UE5.0, I already added it to my blueprint and registered for the events, but nothing is getting called. I also added the GeometryCollection to the listener.
Is there some good tutorial or documentation that I could read here?
Never mind I found an example in the Unreal Content Examples Project from Epic
You need to enable “Notify Breaks” in the Geometry Collection (GC). Then Pass the GC to the blueprint you want to get notified and register for the notification there “Bind Event to On Chaos Break Event”. Then it works like charm. No need for the “Chaos Destruction Listener”.
Strange, on my side, it doesn’t work. I’m running on UE 5.3.
I checked the example content and I tried different ways to test the break feature:
Within a blueprint having a geometry collection, using the already provided event “On Chaos Break Event”
Within a blueprint having a geometry collection, binding “On Chaos Break Event” to a new event
Within the level blueprint
None are working. And yes, “Notify Breaks” is enabled:
The only way I can manage to make it work is from a geometry collection actor in the map, binding “On Chaos Break Event” to a new event. My blueprint class that has the “hit event” which manage the field never trigger the event, which is a shame because I need it for delegate and other functions.