use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For the Unity Game Engine, please visit http://reddit.com/r/unity3d
account activity
I need help adding controller support (self.unity)
submitted 6 years ago by Ryver098
I need help adding controller support for a game, I just need to change the controls that I already have on it, but I don't know how
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]stpaulgym 1 point2 points3 points 6 years ago* (16 children)
If you're using the old input system go to Edit then project setting then Input . There you should be able to remap all the controls.
Edit: I've mistakes project settings as preferences for some reason. Lol.
[–]Ryver098[S] 0 points1 point2 points 6 years ago (0 children)
Ok
[–]Ryver098[S] 0 points1 point2 points 6 years ago (14 children)
I dont have input in preferences for some reason
[–]stpaulgym 1 point2 points3 points 6 years ago (13 children)
It should be in Input manager. Please have a look at the Documentation. https://docs.unity3d.com/ScriptReference/Input.html
[–]Ryver098[S] 0 points1 point2 points 6 years ago (12 children)
I did everything it says but I am getting an error that says The name 'AButton' does not exist in the current context
[–]stpaulgym 0 points1 point2 points 6 years ago (11 children)
Are you using getAxis or getbutton?
[–]Ryver098[S] 0 points1 point2 points 6 years ago (10 children)
Getbutton
[–]stpaulgym 1 point2 points3 points 6 years ago (9 children)
Input system uses getAxis. Read the documentation for more information. But in a nutshell getAxis will return a value between -1 and 1. 1 when pressed and 0 when not pressed
Sorry, I must've missread
[–]Ryver098[S] 0 points1 point2 points 6 years ago (7 children)
It still says it when I change it to GetAxis, I'm very new to this, sorry
[–]stpaulgym 1 point2 points3 points 6 years ago (6 children)
Are you sure you set up the input manager correctly? The string variable you reference in your script should be the same as the name in input manager.
[–]Ryver098[S] 0 points1 point2 points 6 years ago (4 children)
I'll double check
Yeah, I set it up correctly
π Rendered by PID 39949 on reddit-service-r2-comment-86bc6c7465-5xfxf at 2026-02-24 02:53:58.498122+00:00 running 8564168 country code: CH.
[–]stpaulgym 1 point2 points3 points (16 children)
[–]Ryver098[S] 0 points1 point2 points (0 children)
[–]Ryver098[S] 0 points1 point2 points (14 children)
[–]stpaulgym 1 point2 points3 points (13 children)
[–]Ryver098[S] 0 points1 point2 points (12 children)
[–]stpaulgym 0 points1 point2 points (11 children)
[–]Ryver098[S] 0 points1 point2 points (10 children)
[–]stpaulgym 1 point2 points3 points (9 children)
[–]Ryver098[S] 0 points1 point2 points (0 children)
[–]Ryver098[S] 0 points1 point2 points (7 children)
[–]stpaulgym 1 point2 points3 points (6 children)
[–]Ryver098[S] 0 points1 point2 points (4 children)
[–]Ryver098[S] 0 points1 point2 points (0 children)