Demigiant Forum

Unity Assets => DOTween & DOTween Pro => Topic started by: Leonardherndon on October 12, 2015, 12:14:27 AM

Title: Proper use of DOGradientColor
Post by: Leonardherndon 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.
Title: Re: Proper use of DOGradientColor
Post by: Daniele on October 12, 2015, 12:30:43 AM
Hi,

Are you using the last version of DOTween downloaded from the website (http://dotween.demigiant.com/download.php) (I added DOGradientColor only a few days ago)?

Cheers,
Daniele
Title: Re: Proper use of DOGradientColor
Post by: Leonardherndon on October 12, 2015, 01:44:50 AM
That was it. I'm dumb. Haha. Thanks!
Title: Re: Proper use of DOGradientColor
Post by: Daniele on October 12, 2015, 01:52:35 AM
Aha nono it's my bad, I update too often :D