- Home /
iTween and texture problem
I have scale GUI plane to make effect but it happen that the texture become black when scaled.
public GameObject icebar;
Hashtable ht = new Hashtable();
void Start ()
{
iTween.Init(iceHead);
iceHead.renderer.enabled = true;
appear();
}
private void appear()
{
ht.Add("time",0.2);
ht.Add("scale",new Vector3(3,3,0));
ht.Add("onComplete","appear");
ht.Add("onCompleteTarget",icebar);
ht.Add("easetype","easeOutCubic");
iTween.ScaleFrom(iceHead,ht);
ht.Clear();
}
125125
as you can see in the picture this after using iTween.ScaleFrom(iceHead,ht); the texture become black, i don't know why. the ice bar sometimes get black too.
Comment
Your answer
Follow this Question
Related Questions
Making iTween work with OnGUI functions 3 Answers
GUITexture Button? 1 Answer
rotating GUI texture by angle 2 Answers
Sprites and minmizing memory usage 1 Answer
How to place/add a HD image/picture in background of my game? 0 Answers