Proper use of DOGradientColor
« on: October 12, 2015, 12:14:27 AM »
Does anyone have an example of the proper use of the DOGradientColor method? I tried using it on a material only to get the error:

Type `UnityEngine.Material' does not contain a definition for `DOGradientColor' and no extension method `DOGradientColor' of type `UnityEngine.Material' could be found (are you missing a using directive or an assembly reference?)

Am I wrong in thinking that I should be able to apply a gradient to a standard shader. The online doc doesn't say much about this.

*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: Proper use of DOGradientColor
« Reply #1 on: October 12, 2015, 12:30:43 AM »
Hi,

Are you using the last version of DOTween downloaded from the website (I added DOGradientColor only a few days ago)?

Cheers,
Daniele

Re: Proper use of DOGradientColor
« Reply #2 on: October 12, 2015, 01:44:50 AM »
That was it. I'm dumb. Haha. Thanks!

*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: Proper use of DOGradientColor
« Reply #3 on: October 12, 2015, 01:52:35 AM »
Aha nono it's my bad, I update too often :D