I need to find the bounds of a widget with all his children. I tried using the following code but got a strange output. Either the widget had children which were more than 100 pixels in width and height the output was something about 1.
Vector3 widgetBounds = NGUIMath.CalculateRelativeWidgetBounds(this.transform).size;
What am I doing wrong?
Thank you.
Does this do what you want?