- Home /
Unity 4.6 GUI weird toggle+button interaction?
OK, so I have a script for my toggle which enables a panel in which a button is, but I have noticed that the button is not interactable even though I have set it to be true. What bugs me is that it doesn't seem to be a problem with my code.
When I move the button on top of the toggle (like move it up in the hierarchy like so):
Where the build-panel-1-button is "below" the panel containing the toggle. I can click on the button when I start the game, but then my toggle becomes disabled. Anyone know why this is?
Answer by unimechanic · Oct 06, 2014 at 09:31 PM
You can ask in the Beta group, where our developers could help.
Answer by Mosy · Nov 18, 2014 at 04:10 PM
If they are close by one another they could be overlapping one another and thus preventing both from being interacted with at the same time.
Your answer
![](https://koobas.hobune.stream/wayback/20220613163106im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
GUI 4.6 Toggle Question. 0 Answers
change the style of a gui by a key press 0 Answers
How can a button be highlighted but not trigger on click event when submit button is pressed? 0 Answers
How do I access the button component of a button in the new gui system. 2 Answers
Is there a way of using just basic gui.Buttons as toggles? 1 Answer