#nononono im checking to see if the

1 messages · Page 1 of 1 (latest)

dull holly
#

share screenshots of the hierarchy + inspector setup for this

analog condor
#

i want to enable the Image child, IF the button is being hovered over

#

and disable it vice versa

dull holly
#

Does your text have raycast enabled?

analog condor
#

why would that matter?

#

its not what im checking is hovered over

dull holly
#

because you have nothing for the graphics raycast to hit

#

nothing on that NewGameBtn is present to be hit by a graphics raycast.

If the text has raycast disbaled, then the pointer handler has nothing at all to hit.
If the text has raycast enabled, then I believe only the letters themselves can be hit.. not the empty space around them

#

I would put an image component on NewGameBtn, and set the alpha to 0

analog condor
#

ok

#

still nothing

dull holly
#

Got an active Event System in the scene?

analog condor
#

looks like it

dull holly
#

Yep

#

using new or old input system

#

If you don't know and/or don't know how to find out

analog condor
#

should I set it to the new one?

dull holly
#

Not unless you need/want it.

I know the UI buttons don't work with the event system/ buttons. I don't know how the PointerHandler works with the new input system..

#

If you're on old, that isn't a problem

analog condor
#

im on the old one

dull holly
#

On the event system, at the bottom you'll see the text 'Event system' and a grey bar with lines on (my red line is on it here).

Click that so it expands.

At run time this shows you what events are happening.. when you mouse over your buttons, what do you see? You WANT to see NewGameBtn .. but if you don't, you'll either see

  • something else -> blocking buttons, move it out of the way.
  • nothing -> rayasts aren't hitting button for some reason
analog condor
#

ah i got it

#

it was being intercepted by my static effect

#

disabled the raycast for that

#

tysm

dull holly
#

np