1
Support / Re: Changing color of tk2dSprite and tk2dTextMesh not working
« on: June 25, 2014, 09:29:59 am »
Ok. I found the solution. I need to use Color32, not Color.
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.
using UnityEngine;
using System.Collections;
public class TestClass : MonoBehaviour {
public tk2dSprite sprite;
public tk2dTextMesh text;
public void configure (Color color) {
sprite.color = color;
text.color = color;
text.Commit();
}
}