Author Topic: Making Error Window  (Read 3801 times)

locus84

  • Guest
Making Error Window
« 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?

PhilipC

  • Guest
Re: Making Error Window
« Reply #1 on: June 25, 2012, 10:00:10 AM »
I'm not 100% sure but have you tried setting selectedObject to null? Found in UICamera. I think this will do what you require.

locus84

  • Guest
Re: Making Error Window
« Reply #2 on: June 25, 2012, 10:26:05 AM »
Nice! thx!
So it's the static member that's bcuz there always should be just one selected UI!

PhilipC

  • Guest
Re: Making Error Window
« Reply #3 on: June 25, 2012, 10:34:30 AM »
If your somehow have more then 1 UI element selected we have a issue :).