Author Topic: How to deactivate UI temporarily while waiting for async operation  (Read 2294 times)

JamieFristrom

  • Guest
How to deactivate UI temporarily while waiting for async operation
« on: September 29, 2013, 11:09:24 PM »
Hi,

While waiting for a "Register" or "Login" to process, I'm spinning a gameobject in the foreground and would like NGUI to stop processing clicks and keypresses while it waits. What's the best way to do that?

Cheers,
Jamie

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: How to deactivate UI temporarily while waiting for async operation
« Reply #1 on: September 30, 2013, 03:40:21 AM »
Easiest is to put a collider in front of everything that doesn't do anything and removing it when your async operation is done.