Unity: Mobile Joystick Tutorial [NO PLUGINS]

Опубликовано: 03 Декабрь 2024
на канале: Press Start
24,037
652

In this tutorial I explain how to code a virtual joystick in Unity to be used for mobile or touch screen devices.
SUBSCRIBE: https://bit.ly/2Js78lE
============
In this video you will learn:
0:52 - Create a new C# script
1:08 - Create a moveCharacter function
2:50 - Move with arrow keys or physical joystick
3:38 - How to calculate direction
5:08 - Mouse Position - Screen View vs. World View
7:50 - Setup a Visual Joystick
9:45 - Final Product

COPY & PASTE SOURCE CODE:
https://pressstart.vip/tutorials/2018...

MORE TUTORIALS
https://pressstart.vip/unity-tutorials