Search Unity

Make a color transition

Discussion in 'Getting Started' started by selkeer, Feb 7, 2019.

  1. selkeer

    selkeer

    Joined:
    Sep 20, 2017
    Posts:
    7
    Hi,
    I would like to know if it's possible to turn the color of a cube into an other one with animation (from the bottom to the top). I don't know what i have to look for.

    Thank you.
     
  2. BrewNCode

    BrewNCode

    Joined:
    Feb 17, 2017
    Posts:
    372
  3. selkeer

    selkeer

    Joined:
    Sep 20, 2017
    Posts:
    7
    Thank you for your response, i don't see anything which could help. :/
    I've already succeed in turning the color into an other one with Lerp but the animation bottom to top i don't know how to do it, and even if it's possible.
     
  4. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,512
    It's absolutely possible, but you're looking at writing a custom shader to do this. That's a bit outside my area of knowledge, but this might be a good place to start.
     
  5. selkeer

    selkeer

    Joined:
    Sep 20, 2017
    Posts:
    7
    Ok thank you a lot I will dig in this area !