Author Topic: UICheckbox not accepting input.  (Read 2150 times)

MaskedPixel

  • Guest
UICheckbox not accepting input.
« on: June 10, 2013, 08:17:07 PM »
Posting to maybe help someone...

Make sure your "Radio Button Root" is on the correct layer.

While pretty obvious in hindsight, it took a while to figure out as that behavior isn't the most intuitive.

satrio

  • Guest
Re: UICheckbox not accepting input.
« Reply #1 on: June 26, 2013, 08:15:44 AM »
I had the same problem with "input field".

It worked if I put the collider and script on the label object as in the example provided with NGUI.
My problem was that I had grouped the input field with some other objects to organize under an empty game object.
This empty gameobject needs to have the same layer as the rest of the panel.

Thanks to your post, I could find the problem! 

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UICheckbox not accepting input.
« Reply #2 on: June 26, 2013, 12:40:26 PM »
Use ALT+SHIFT+N to add child game objects. When you do that, they will assume the layer of the parent. There are other useful shortcuts: ALT+SHIFT+S to add a sprite, ALT+SHIFT+L to add a label, etc.