- Home /
Question by
leopeaxd · Jul 06, 2020 at 10:44 AM ·
c#triggerunity 2dxboxcontroller
How can I get trigger input from an Xbox controller? (Mac)
I am trying to make it so that when I press the right trigger on my controller the laser prefab instantiates. I'm am trying to use unity's input manager but I cannot get it to work. I would like it so that I could do something like this:
if (Input.GetButtonDown("Fire1")) { Instantiate(laserPrefab, transform.position, Quaternion.identity); }
Any help would be appreciated.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613002607im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to get trigger input on an Xbox controller (Mac) 0 Answers
How can I get trigger input from an Xbox controller? (Mac) 0 Answers
Multiple Cars not working 1 Answer
Problem with 2D Collider Trigger 1 Answer
Distribute terrain in zones 3 Answers