Search Unity

HSV Color animation

Discussion in 'Animation' started by ChaachGD, Mar 13, 2019.

  1. ChaachGD

    ChaachGD

    Joined:
    Aug 12, 2018
    Posts:
    3
    Is there a way to animate a color hue, brightness or saturation through an animation clip? i have an object that is a lock, monochromatic, i use the sprite renderer color to tint it with a dark color and when the user unlocks it the color gets brighter and brighter and then the lock break, a simple animation, the problem is that i have multiple types of locks with different colors, and the animation overwrite the lock color because it uses RGB, but i only need to animate the value/brightness with HSV, can't find a way to do this.
     
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,570
    Not directly, but if you make a script that takes HSV values and uses them to set the target's color you could probably animate that script's values instead of the target.
     
    SNoteBook likes this.