Author Topic: BringForward / Pushback  (Read 4177 times)

Donkey111

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 16
    • View Profile
BringForward / Pushback
« 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?

Donkey111

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: BringForward / Pushback
« Reply #1 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.