Search Unity

Trying to make gameobjects disappearing smoothly

Discussion in 'General Graphics' started by Cocotin35, Dec 20, 2020.

  1. Cocotin35

    Cocotin35

    Joined:
    Feb 6, 2016
    Posts:
    3
    Hi guys,

    I have a scene with different rooms and i would like to make a room fade out when the player is leaving it and fade in when entering it.

    First, I thought about changing transparency of all materials of a room to make it fade In/Out but in order to make this work, every materials need to be transparent and this is causing rendering problems (see this : https://answers.unity.com/questions/129285/transparent-shader-objects-disappear-on-certain-ca.html ).
    So I was looking to make a cutout shader but i dont understand how it can work as my materials are all opaque. Does someone have any idea how to do this ?

    I'm also looking for other ideas to get the effect wanted :)

    Thanks you in advance !
    Corentin
     

    Attached Files: