Which package allows the controls by mobile/joystick as well as pc/keyboard.


I have just started learning Unity so I am not sure even if it is possible or not.
So I want to create a game which is supported on Mobile as well as PC.
For the player control I am importing ‘Standard Assets(Mobile)’ package which allows me to control the player using mobile joystick but not the keyboard.

Is there any way to control the player using mobile joystick as well as pc ?


I never developped a game for mobile, but I guess it doesn’t matter. You need to use the Input settings. Set the space on your keyboard to “jump”, then set however it is the touch to be “jump” as well. Then in your code, use Input.GetButton(“jump”).