Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: tr4np on April 09, 2014, 02:12:36 PM

Title: "Bring to front" during run-time?
Post by: tr4np on April 09, 2014, 02:12:36 PM
Is there an NGUI method to bring a widget to the front, similar to the right-click menu option in the editor?  I have multiple draggable windows that could overlap, and I want the most recently touched window to be on top.
Title: Re: "Bring to front" during run-time?
Post by: ArenMook on April 10, 2014, 06:46:43 AM
NGUITools.BringForward
Title: Re: "Bring to front" during run-time?
Post by: tr4np on April 10, 2014, 02:16:35 PM
NGUITools.BringForward

Great, I'm glad it was so simple!  I was worried I'd have to iterate through all the widgets and keep track of all the depths myself.

Are these methods documented somewhere?  I'd like to know what other useful methods I might be missing out on.

thanks,
Phong
Title: Re: "Bring to front" during run-time?
Post by: ArenMook on April 11, 2014, 07:07:39 AM
Here: http://www.tasharen.com/ngui/docs/class_n_g_u_i_tools.html