Looking to itween source code I noted that the ColorTo and ColorFrom functions can be used to change specular, reflection and emisive colors with only a few changes:
Change lines with code like:
colors[i,0]=renderer.materials[i].color
with
colors[i,0]=renderer.materials[i].GetColor("_ReflectColor"); // _SpecColor, _Emission or _Color
and change lines with code like
renderer.materials[i].color=colors[i,2]
with
renderer.materials[i].SetColor("_ReflectColor", colors[i, 2] ); // _SpecColor, _Emission or _Color
I Hope that this commentary helps to improve itween library.
Thanks for the heads up on this approach! You can also use the ValueTo methods to do this. I guess I should add an option to pass in which colors you’d like to adjust?
You can now tell iTween to animate your specular, reflection and emisive colors with the ColorTo() and ColorFrom() methods by sending the “namedcolorvalue” property!!