Jump to content

One Sprite with inputEnabled under a Button is disabling the click events in the button


JavierOrtega
 Share

Recommended Posts

Hi,

 

    I have a button above a simple sprite, this sprite has the inputEnabled property set to true, in this scenario:

 

 

                          - when the sprite is visible, the sprite receives all the events, but the area of the button above the sprite is not receiving the click events.

                          - when the sprite is not visible ( I am doing an animation of the sprite using its scale property, and setting it to 0 in the end of the animation), the full area the button is clickable.

 

 

   The Sprite shouldn't affect in anyway to the button, since the sprite is below of the button, do you have some clue how can I fix it?

 

 

  Thanks in advance.     

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...