I’m doing a project and I created a UI canvas under which I added 3 empty GameObjects. In these empties, there are buttons. It worked properly before with no issue but then all the buttons in the 2 first empties stopped working. They react when you click them (by having a kind of gray tint) but they don’t do call the function they’re supposed to call.
I have
- An event system
I’ve already tried :
- Deleting and re-creating the event system
- Add a Canvas group to the Main canvas GameObject
- Add a Graphic Raycaster on the two empties with problematic buttons
- Marking the buttons as interactable (they were already interactable anyway)
- Restarting unity & playing the game (too many times)
The hierarchy of the UI :
MainCanvas
UIEmpty1
Button1
UIEmpty2
Button2
Empty
Button3
Button4
Button4
Button5
UIEmpty3
Button6
Button7
Also : They’re not all open at the same time