How can i make my monster which is killed disappear little by little with c++ code

I want to make it disappear little by little when my monster die,but i am not be able find relative interface or function.
thanks for any one who give me a word. not disapper but disappear little by little…

There’s no death of actor in UE4 per se. AFAIR, there was in UE3, but the semantics are so different for each game, that UE devs scrapped it. You can destroy an actor, but it will disappear immediately (it’s rather low level).

So, you’ll have to implement the death yourself. To make the character gradually disappear, you’ll have to change material properties of the actor’s mesh. Do it with dynamic materials:

https://www.youtube.com/watch?v=i2XmTbfIJ3s

Implement some OnDie blueprint event in your character, that will start a timeline that changes property of the material to gradually disappear.

Once the timeline is finished, simply destroy the actor.

There are so many ways to achieve this effect.

This is one way - Disintegrating Baddies: Dissolve Effects in UE4

You’d be better served by giving more details or an example if possible.

Thank you very much, I got it.

Thank you. it is useful for me.