- Home /
Question by
Novandalis · Apr 23, 2015 at 07:22 PM ·
c#uibutton
Click a UI button from a script
Currently I have a button that does something in my scene, and a keypress that will do the same thing. When I press the key, I want the button to do it's color shift as though it were clicked. How do I do this?
Comment
Answer by whackamuffin · Apr 23, 2015 at 08:25 PM
Does this help you?
http://answers.unity3d.com/questions/820599/simulate-button-presses-through-code-unity-46-gui.html