1
Support / Re: How can I tween alpha on tk2dAnimatedSprite
« on: May 27, 2013, 02:56:03 pm »
Thx. I'll try to solve this problem. Will update if I can figure out the actual issue.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
public void SetAlpha(float alpha)
{
Material material = role.GetComponent<Renderer>().material;
Color color = material.GetColor("_Tint");
color.a = alpha;
material.SetColor("_Tint", color);
}