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/06/22/39/mobile-joystick-in-unity.html
MORE TUTORIALS
https://pressstart.vip/unity-tutorials
Voir sur youtube