- Home /
How to set Input buttons from the script?
In my options menu, I want to be able to change Input buttons keys. Is there any function that changes the key of the input buttons from the script? like SetButton or something?
Answer by sirival · Nov 15, 2012 at 09:42 PM
Seems like you can't?
http://answers.unity3d.com/questions/152084/changing-input-buttons.html
Okay, is there a way to modify the audio? mute it or unmute it maybe?
I suggest posting a different question about this. In any case the easiest way to disable sound is to disable the main camera's audio listener component
Actually not disable it but set its volume to 0: http://docs.unity3d.com/Documentation/ScriptReference/AudioListener.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613083928im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Wait for button response in coroutine? 2 Answers
button triggered using new input system 0 Answers
is possible press 2 buttons at the same time Mobile touch? 0 Answers
Gear VR Clicking on regular Unity buttons 0 Answers
D-Pad as Button instead of Axis 3 Answers