Search Unity

Question Add material effect

Discussion in 'General Graphics' started by shuskry, May 12, 2023.

  1. shuskry

    shuskry

    Joined:
    Oct 10, 2015
    Posts:
    462
    Hello everyone! :D

    So far I've been using a Shader that I bought from the assetstore, and I've recently been interested in wanting to add "effects" to the enemies in my game, but I'm a little lost on how to proceed. .

    Let me explain: I have an enemy with a material and a Shader.
    when my enemy dies, I would like it to disappear with a classic Dissolve Shader effect ( created in shader graph)

    But how to do that? is this possible knowing that I do not master the main Shader? (it was not created with Shader graph)

    The only way that comes to my mind is to switch material when dying, but I wouldn't be able to reproduce the shader in shader graph. So we would see the transition between the two during the change...

    If anyone can point me in the right direction to resolve my issue, I would greatly appreciate it!

    have a good day :)!