0
\$\begingroup\$

Buttons Easy, Medium and Hard can not be clicked even though Restart Button was clickable from the start. All of the buttons have interactable checkbox on and raycast target on. Shadow panels and Bacground - Game Menu also have raycast target on. hierarchy and game view difficulty buttons

hierarchy and game view restart button

\$\endgroup\$
1
  • \$\begingroup\$ Can you show us the inspector setup for these buttons, or walk us through the steps to reproduce this problem, starting from an empty scene? \$\endgroup\$
    – DMGregory
    Feb 4 at 18:25

2 Answers 2

1
\$\begingroup\$

To confirm which button the system thinks is available do this:

  • enter image description hereRun the game.
  • Find your EventSystem in the hierarchy and expand it.
  • Move your mouse/pointer over each button and look for pointerEnter changing.

Do this on the button that works and the ones that don't. What do you see?

\$\endgroup\$
1
  • \$\begingroup\$ Thank you for your help! In the EventSystem pointerEnter instead of Easy Button it's Hearts Panel! Do you think that changing the Sorting and Order Layer in CanvasRenderer will help? \$\endgroup\$ Feb 7 at 0:07
0
\$\begingroup\$

The problem was the Hearts Panel, I resized it, added Graphic Raycaster to Background, Buttons and Shadows and it started working!

\$\endgroup\$
1
  • 2
    \$\begingroup\$ Can you add a bit more detail, I know this is a bit of a specific problem, but if anyone has the same issue. Perhaps some extra clarification would be useful. \$\endgroup\$
    – Pow
    Feb 7 at 22:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .