Easy Joystick for Mobile with Input System in Unity

Uploaded by samyam
Share: Twitter Facebook
Today we will use the new input system in Unity to add an on-screen joystick to our game. This works on both desktop and mobile phone devices.

Using an on-screen stick will pipe the values to a different control type, aka Gamepad stick, where we can then use an input action asset to read it's value in our script.

►? Video Source Code ?
https://www.patreon.com/posts/50464914

►? Relevant Video Links ?
ᐅKenney Onscreen Controls
https://www.kenney.nl/assets/onscreen-controls
ᐅCharacter Controller Move Script
https://docs.unity3d.com/ScriptReference/CharacterController.Move.html

Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we have recommended. While clicking these links won't cost you any money, they will help me fund my development projects while recommending great assets!

? Cool Unity Assets ?
ᐅPeek - Editor Toolkit: https://assetstore.unity.com/packages/tools/utilities/peek-editor-toolkit-149410
ᐅEditor Console Pro: https://assetstore.unity.com/packages/tools/utilities/editor-console-pro-11889
ᐅRainbow Folders 2: https://assetstore.unity.com/packages/tools/utilities/rainbow-folders-2-143526

? Support Me ?
Patreon: https://www.patreon.com/samyg
Donate: https://ko-fi.com/samyam

►⏱️ Timestamps ⏱️
0:00 Intro
0:07 Setup
0:31 On-screen Stick
1:42 Control Path
2:21 Adding Another Joystick
2:50 Input Action Asset
4:19 Input Action Usage Example
5:13 Joystick Image
6:32 Build to Phone
6:48 Outro

??THANK YOU TO ALL MY PATRONS ??

❯❯❯ My Links ❮❮❮
? Patreon ?
https://www.patreon.com/samyg
? Discord Server ?
https://discord.gg/mj3dSnmaZc
? Twitter ?
https://twitter.com/samyam_utube
? Facebook ?
https://www.facebook.com/samyam.youtube/
? Music ?
Ambient Gold
streambeats.com
? Like and Subscribe! ?

?️ Computer Setup ?️
*As an Amazon Associate I earn from qualifying purchases.
https://www.amazon.com/shop/samyam

#madewithunity #gamedev #unity