Hello,
I am using 3rd person controller asset in unity, are there any free and easy way for using touch joystick?
Steps for joystick:
- Make an outline circle texture.
- Make a filled circle texture
- Draw the outline circle texture where you want the joystick
- Check if input is inside the outline circle with [HitTest][1]
[1]: Unity - Scripting API: GUIElement.HitTest - If so, draw the filled circle where the touch input is.
Getting input from joystick:
Determine where the center of the joystick is. Your x axis input is Touch.input.x - (The center of your joystick) and your y axis input is Touch.input.y - (The center of your joystick).