16
NGUI 3 Support / Hierarchical Scale Inheritance
« on: September 20, 2012, 04:37:45 AM »
Can someone please explain how child objects in NGUI inherit their parents scale?
I am following the Scrolling View writeup. In it I'm instructed to add a child-Panel to the main Panel. I've done this, but I'm unable to add anything directly to this child-Panel afterward. What I've ended up doing is creating the objects as normal (attached to the original Parent Panel), and then dragging them into the child-Panel to parent them to it.
Whenever I place an object beneath another NGUI object like this, its scale is reset to 0. If I try to manually correct that scale, it's unreliable and the graphic distorts.
Am I doing something wrong? If not, can someone please explain the logic behind the scale inheritance and how I should go about fixing my, labels, sprites and sliced sprites?
Thank you very much!
I am following the Scrolling View writeup. In it I'm instructed to add a child-Panel to the main Panel. I've done this, but I'm unable to add anything directly to this child-Panel afterward. What I've ended up doing is creating the objects as normal (attached to the original Parent Panel), and then dragging them into the child-Panel to parent them to it.
Whenever I place an object beneath another NGUI object like this, its scale is reset to 0. If I try to manually correct that scale, it's unreliable and the graphic distorts.
Am I doing something wrong? If not, can someone please explain the logic behind the scale inheritance and how I should go about fixing my, labels, sprites and sliced sprites?
Thank you very much!