Author Topic: 2 overlay panels  (Read 1780 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
2 overlay panels
« on: March 28, 2013, 02:08:56 PM »
I've a lot of pop-ups and other screens like inventory where I've 2 panels one above another, but there's input in both, how I can remove or block the input in the panel behind?


In all of this is showing both panel, because the above one it has transparent background.


I was thinking in disable all the colliders in the panel behind, that's the option?


Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 2 overlay panels
« Reply #1 on: March 28, 2013, 04:41:52 PM »
Add a collider that covers the panel's area. Generally this means adding it to the background sprite.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: 2 overlay panels
« Reply #2 on: April 01, 2013, 08:06:10 AM »
Thanks!
I'm going to try it!