UI Button not working at all

dazcmu

New member
XNullUser
Joined
Dec 13, 2021
Messages
10
Reaction score
1
Points
1
NullCash
21
My button won't even highlight on mouse over.

I have an EventSystem.
Tried with the EventSystem option Force Module Active.
I have only one Canvas.
The Canvas has a Graphic Raycaster component.
Canvas Render Mode is set to Screen Space - Overlay, also tried the other two with the camera, didn't work.
The button is a child object of the Canvas.
The button is marked as interactable and calls a function from a script.
There are no other HUD objects that are at the same place as the button.
I've added using UnityEngine.EventSystem; to my script.
Tried putting the button on different places in the hierarchy.
Tried playing the game and restarting Unity a couple of times.

There are a few more things I've tried for sure, can't remember everything at the moment.. getting desperate already.
 

eliod

Member
XNullUser
Joined
Sep 10, 2021
Messages
200
Reaction score
0
Points
16
NullCash
0
Grazie, questo è un ottimo argomento e te ne sono molto grato
 

donjesco

New member
XNullUser
Joined
May 2, 2022
Messages
6
Reaction score
0
Points
1
NullCash
11
¡Gracias hermano por compartir este módulo!
 
Top