Shapes with DoTween
I am using DoTween and I wanted to use Shapes with it. For example, I am using Torus from Shapes and I want to fade out the color of it. But looks like DoTween cannot find a material to fade the color?
http://dotween.demigiant.com/documentation.php
A small example of what I am trying to achieve:
using Shapes;
public class Example: MonoBehaviour {
public Torus torus;
public void Start(){
torus.DOColor(new Color32(255, 255, 255, 0), 2.0f); // Throws error
}
DOTween doesn't know what property to change, so it only works with objects it has explicitly implemented support for, and it doesn't have explicit support shapes.
But you can use the generic tweener like this: