Reset destructible mesh via Blueprint?
Is it possible to reset a destructible mesh to initial state with blue print?
asked May 17 '14 at 08:33 PM in Blueprint Scripting
You can't reset it, but you can respawn it easily enough. Create a Blueprint with the Destructible Mesh as its component. In your Level Blueprint (or wherever you're spawning it from), use the Spawn Actor From Class node and choose your new Blueprint as the class. Give it the same transform as the original, and you'll have a new instance of the same Destructible Mesh where the first one was.
In the example below, I have my Destructible Mesh's Blueprint in my level above the ground a bit so that it falls and breaks when I hit Play. The Level Blueprint gets its starting Transform, waits a couple of seconds, then spawns a new Destructible using the original's transform.
If you're looking for something more complex involving rebuilding the Destructible from the pieces of the original, you'll need to do that through animation instead.
Hope that helps!
answered May 19 '14 at 05:46 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here