- Home /
 
               Question by 
               unity_5Z0aKVnorDc67w · Jan 16, 2018 at 11:29 PM · 
                c#physicsprojectileforcesmotion-tracking  
              
 
              buttonNames for GetButton
I need more buttonNames for GetButton. code if you need it:
 using UnityEngine;
 
 public class Force : MonoBehaviour {
     Vector3 direction;
     float force;
     Rigidbody rb;
     void Update() {if (Input.GetButton("Fire1")) {rb.AddForce(direction * force);}}
 }
and the docs: https://docs.unity3d.com/2018.1/Documentation/ScriptReference/Input.GetButton.html Thanks!
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by getyour411 · Jan 17, 2018 at 01:00 AM
Do you mean more things "Fire1" for GetButton()? If so, look at InputManager / adding your own:
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                