Hi there,
Here comes a new and weird problem.
I have an object with widgets as childs, and I'm trying to -1 Xscale the object (everything's fine ftm).
Then comes the moment I'm trying to -1 Xscale one widget (the UILabel) to bring it back to normal.
And so the text is no more wrapping when I launch the prog.
Weird thing is, when I -1 Xscale it from editor, it works fine (but I can't do it from editor, needs to be dynamical).
Here comes the reScaling code:
public void FlipReply(bool active)
{
if(active)
{
Vector3 scale = replyObject.transform.localScale;
scale.x *= -1;
replyObject.transform.localScale = scale;
for(int i=0; i < replyObject.transform.GetChildCount(); i++)
{
if(replyObject.transform.GetChild(i).gameObject.GetComponent<UILabel>() != null)
{
scale = replyObject.transform.GetChild(i).localScale;
scale.x *= -1;
replyObject.transform.GetChild(i).localScale = scale;
}
}
}
}
So if you have any suggestion on that prob happening, would be cool to hear it.
Thanks in advance.
Greetings,
Abnaxus.