Рет қаралды 96,280
In this tutorial I explain how to code a virtual joystick in Unity to be used for mobile or touch screen devices. 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
Download Assets:
pressstart.vip...
Copy & Paste Code Here:
pressstart.vip...
For more Unity tutorials:
pressstart.vip...