Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: locus84 on June 25, 2012, 09:17:05 AM
-
I'm trying to make Error window.
I've added a panel with position.z = -1, and big filled sprite with collider to prevent clicking other UIs.
Of course I put some window components in front of the sprite.
It works well, but in case I use UIButtonKeys script with other UIs, it doesn't.
The activated UI components(like button, input field) still have it's selected status.(so I can move on among those with arrows)
I want it release when my error window pops up.
How can do it?
-
I'm not 100% sure but have you tried setting selectedObject to null? Found in UICamera. I think this will do what you require.
-
Nice! thx!
So it's the static member that's bcuz there always should be just one selected UI!
-
If your somehow have more then 1 UI element selected we have a issue :).