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
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