Author Topic: Disable whole UI  (Read 1529 times)

DJVDJV

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Disable whole UI
« on: February 18, 2016, 09:33:07 AM »
Hellos,

What is easiest way to disable whole NGUI UI. So it is still shown but does not get any inputs. (I need this when I async load new level)

dogfacedesign

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 33
    • View Profile
Re: Disable whole UI
« Reply #1 on: February 18, 2016, 09:37:16 AM »
I would say temporarily override the event mask for that UI Camera.

Check out UICamera.eventReceiverMask ... though not sure if it can be adjusted at runtime via script or not.

Cheers.

devomage

  • Sr. Member
  • ****
  • Thank You
  • -Given: 7
  • -Receive: 67
  • Posts: 250
    • View Profile
Re: Disable whole UI
« Reply #2 on: February 18, 2016, 05:40:37 PM »
You can add a widget and a box collider that covers the entire screen.  Adjust the depth accordingly.