- Home /
UI Button order
Hi,
I am making a game where the user can click the settings-button to slide down the mute-button. The animations work just fine but if the mute-button is behind the settings-button nothing happens, when I press the settings-button(mute-button ist transparent before clicked). I tried to use GUI.depth but it didn´t worked. The settings-button is also in a higher position in the hierachy.
How can I fix this problem?
Answer by pophead2 · Mar 24, 2018 at 08:00 PM
Does your button component have interactable checked? One good way to find info is to select you eventsystem gameobject, press play and then(sometimes) drag that gray bottom bar up in the eventsystem component. There should be alot of data where you mouse is moving, on what element and what is selected at the moment. It is a quite a nice tool.
Your answer
Follow this Question
Related Questions
GUI.Label appearing behind GUI.Button 1 Answer
Gathering GameObjects and then creating a button for each GameObject?? 2 Answers
How to attach GUI Skin on button? 0 Answers
Is there a better way to access the single active Toggle in a ToggleGroup? 4 Answers
How do you highlight/select a button upon mouse enter and keep it moused over upon mouse exit? -2 Answers