I have a world-space screen powered by NGUI, it works quite well. I'm trying to put something on the screen when the object is inactive, but immediately remove it if it exceeds the screen boundaries. I found the right function for it - NGUIMath.CalculateRelativeWidgetBounds.
When I call the function when the screen is active [NGUIMath.CalculateRelativeWidgetBounds(container.transform)], it works just fine. Trouble begin when I try to run it when the screen is disabled. I'm supposed to use NGUIMath.CalculateRelativeWidgetBounds(container.transform, true), but it returns pretty random output:
The dimensions should be 200x100.
Any clue how to fix it? Help is much appreciated