How to make a shader run at a certain point in time?
So I've got an enemy AI that will leave behind its parts upon death, and I made a dissolve shader that I want to activate 4 seconds after the death of this AI. I wanted to achieve this by replacing the existing material on the parts with the shader material through code (I thought by doing this, the shader material will automatically play the dissolve and then the parts will become invisible). However, it doesn't player the dissolve animation and simply just disappears. In the scene view I could still see the materials objects there, so I'm guessing the dissolve animation had already played before assigning the shader material. In the first picture you can see the dissolve effect I want. The second picture is the parts left behind upon death, and 4 seconds later when I replace the existing material with the shader material everything simply becomes invisible... I am so stuck.