Easy Joystick for Mobile with Input System in Unity @samyam
Easy Joystick for Mobile with Input System in Unity  @samyam
Uploaded April 2021 | Updated September 2026, 1 week ago
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.

แ…Get the full Source Code Bundle to my Unity Tutorials ๐Ÿค“
sam-yam.itch.io/samyam-full-source-code-to-all-videos

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 ๐Ÿ“ฅ
patreon.com/posts/50464914

โ–บ๐Ÿ”— Relevant Video Links ๐Ÿ”—
แ…Kenney Onscreen Controls
https://www.kenney.nl/assets/onscreen-controls
แ…Character Controller Move Script
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: assetstore.unity.com/packages/tools/utilities/peek-editor-toolkit-149410
แ…Editor Console Pro: assetstore.unity.com/packages/tools/utilities/editor-console-pro-11889
แ…Rainbow Folders 2: assetstore.unity.com/packages/tools/utilities/rainbow-folders-2-143526

๐Ÿค Support Me ๐Ÿค
Patreon: patreon.com/samyg
Donate: 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 ๐Ÿ’—
patreon.com/samyg
๐Ÿ’ฌ Discord Server ๐Ÿ’ฌ
discord.gg/mj3dSnmaZc
๐Ÿฆ Twitter ๐Ÿฆ
twitter.com/samyam_utube
๐Ÿ“š Facebook ๐Ÿ“š
facebook.com/samyam.youtube
๐ŸŽต Music ๐ŸŽต
Ambient Gold
streambeats.com
๐Ÿ‘ Like and Subscribe! ๐Ÿ‘

๐Ÿ–ฅ๏ธ Computer Setup ๐Ÿ–ฅ๏ธ
*As an Amazon Associate I earn from qualifying purchases.
amazon.com/shop/samyam

#madewithunity #gamedev #unity
Easy Joystick for Mobile with Input System in Unity
samyam |

Easy Joystick for Mobile with Input System in Unity

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER