UIComponent setters
Hi,
I have a Canvas, that has some other UIComponents inside. I use an animation to resize it, and calculate each step of the animation myself and upon each step of the animation, I set the width and height of each UIComponent on the canvas, and its x and y.
As I noticed these actions take a lot of time (I saw many events were fired by the setters: width, height, x, y), I was wondering if there's a better way of doing so, and will the resize effect be more efficient.
Thanks.
|