Search Unity

water

Discussion in 'General Discussion' started by shanghai samourai, Mar 22, 2009.

  1. shanghai samourai

    shanghai samourai

    Joined:
    Mar 16, 2009
    Posts:
    36
    hi,

    i was just wondering how do i make it so that when you add water and you go below the water it looks like your underwater, because as the moment being above and below water looks the same.
    thanks
     
  2. nickavv

    nickavv

    Joined:
    Aug 2, 2006
    Posts:
    1,801
    There are a few things you can do. You could enable fog while under water, you could add some particle effects, and if you have pro you can add some sort of effect to the screen to make everything look wavy. ;) Good luck.
     
  3. shanghai samourai

    shanghai samourai

    Joined:
    Mar 16, 2009
    Posts:
    36
    ok i'll try but how do you enable fog while under water and what kind of particle effect do you mean. thanks
     
  4. nickavv

    nickavv

    Joined:
    Aug 2, 2006
    Posts:
    1,801
    To enable fog you can use this code:


    Code (csharp):
    1. RenderSettings.fog = true;
    Make sure you put that in an OnTriggerEnter function that relates to your water trigger.