Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Donkey111 on October 31, 2013, 04:19:15 PM

Title: BringForward / Pushback
Post by: Donkey111 on October 31, 2013, 04:19:15 PM
I'm creating a tutorial. I use NGUITools.BringForward to highlight a game element. I then want that game element to return to its normal position / draw order. I use NGUITools.PushBack, but that hides the gameobject behind the background.

Is their a way to reverse the bring forward call so that when gameplay starts, the tutorial gameobject is "normal" again?
Title: Re: BringForward / Pushback
Post by: Donkey111 on October 31, 2013, 04:29:39 PM
Nevermind. I just commented out NormalizeDepths(); and UpdateWidgetColliderDepth();

It was setting my background from -1000 to 0 for Bring forward, then up to 6 for push back. My gameobject went from 17 normally to 1 when it was pushed back. Whatever the reason, this seems to fix it.