- Home /
How to show layer over all the screen?
I develop a game for andoroid. I want to show NGUI element X, e.g. UISlicedSprite, over all screen (something like help window) and that anything under that X won't react on click/touch. I thought to iterate through all elements and set their colliders to `enable=false', but isn't there is a more elegant way? Maybe I can play, somehow, with raycast or something?
Answer by justin_iSO · Apr 17, 2013 at 02:44 PM
If you want to block clicks over 3D Geometry I have just used an invisible plane with a box collider that I turn on with the help menu to block everything else.
If you want to block clicks over GUI I have just used a GUI Texture stretched to fill the screen with the Z-Layer set to cover the stuff I want blocked when I turn on the help screen.
Hope this gets you pointed in the right direction!
Your answer
Follow this Question
Related Questions
NGUI: Button don't detect input if parent change position on-screen? 1 Answer
How to implement In app billing into NGUI? 0 Answers
NGUI: Duplicate/Rotate? 0 Answers
iTween colliders 1 Answer
Adding 1 point after collison 1 Answer