Author Topic: Button on a button  (Read 3133 times)

Majicpanda

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
Button on a button
« on: January 03, 2013, 01:40:03 PM »
I am trying to use an nGUI button on top of another so that I can create a small "Info" button to click on within the button itself.  Clicking the Skill button will activate the skill, but clicking the button with the "I" label will get tooltip info for the button instead.  This is for iOS, so is there any way to prevent the Skill being clicked when adding a button on top of another?

I've set the widget depth to 1 for the skill and 4 for the info button, but onHover and testing on PC results in the skill button being pressed.

dlewis

  • Guest
Re: Button on a button
« Reply #1 on: January 03, 2013, 05:56:40 PM »
Make sure the collider for the button in front (info) is closer to the camera than the collider for the button it's on top of.