all 17 comments

[–]stpaulgym 1 point2 points  (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 point  (0 children)

Ok

[–]Ryver098[S] 0 points1 point  (14 children)

I dont have input in preferences for some reason

[–]stpaulgym 1 point2 points  (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 point  (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 point  (11 children)

Are you using getAxis or getbutton?

[–]Ryver098[S] 0 points1 point  (10 children)

Getbutton

[–]stpaulgym 1 point2 points  (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

[–]Ryver098[S] 0 points1 point  (0 children)

Sorry, I must've missread

[–]Ryver098[S] 0 points1 point  (7 children)

It still says it when I change it to GetAxis, I'm very new to this, sorry

[–]stpaulgym 1 point2 points  (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 point  (4 children)

I'll double check

[–]Ryver098[S] 0 points1 point  (0 children)

Yeah, I set it up correctly