Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: kenshin122 on December 12, 2014, 07:11:40 AM

Title: How can I achieve anchor the parent which has multiple widget childs?
Post by: kenshin122 on December 12, 2014, 07:11:40 AM
I dont know how to do the parent anchoring which has multiple widgets.

I have one UIPanel and inside there is multiple widgets. But I want those widgets to be positioned at top right corner. But to achieve this effect, I have to manually set all of widgets anchor to top right corner and those tasks are really exhausting.
 What I want is just anchor the parent to top right corner and make rest of widgets follow their parent. But in UIPanel, the anchor option is disabled.
 How can I achieve this without customizing the NGUI code.
 Any ideas?
 
Title: Re: How can I achieve anchor the parent which has multiple widget childs?
Post by: ArenMook on December 12, 2014, 11:48:23 PM
So do just that. Create a widget container -- ALT+SHIFT+W. Set its pivot to top-right, anchor it.

All other widgets will go underneath it. You don't need to anchor them.
Title: Re: How can I achieve anchor the parent which has multiple widget childs?
Post by: kenshin122 on December 15, 2014, 03:40:11 AM
So do just that. Create a widget container -- ALT+SHIFT+W. Set its pivot to top-right, anchor it.

All other widgets will go underneath it. You don't need to anchor them.

Thanks. This worked for me!