#nononono im checking to see if the
1 messages · Page 1 of 1 (latest)
i want to enable the Image child, IF the button is being hovered over
and disable it vice versa
Does your text have raycast enabled?
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
Got an active Event System in the scene?
looks like it
Yep
using new or old input system
If you don't know and/or don't know how to find out
should I set it to the new one?
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
im on the old one
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
ah i got it
it was being intercepted by my static effect
disabled the raycast for that
tysm
np