⚪
Tank & Healer Studio Assets
Return to Website
Ultimate Joystick
Ultimate Joystick
  • 🟢Introduction
    • 👋Welcome!
    • ⚡Getting Started
  • 📖Documentation
    • UltimateJoystick
      • Public Methods
        • GetHorizontalAxis
        • GetVerticalAxis
        • Disable
        • Enable
        • UpdatePositioning
      • Static Methods
        • ReturnComponent
      • Events
      • Properties
  • 💡Tips & Tricks
    • Catching Tap Count
    • Custom Runtime Positioning
  • 🔗Helpful Links
    • Leave us a review!
    • Join our Discord server!
Powered by GitBook
On this page

Was this helpful?

  1. Documentation
  2. UltimateJoystick
  3. Public Methods

GetVerticalAxis

Returns a float value between -1 and 1 representing the vertical value of the Ultimate Joystick.

using UnityEngine;

public class JoystickExample : MonoBehaviour
{
	// BE SURE TO ASSIGN THIS IN THE INSPECTOR //
	public UltimateJoystick joystick;

	void Update ()
	{
		float v = joystick.GetVerticalAxis();
		
		// OR USE HORIZONTAL ACCESSOR //
		v = joystick.VerticalAxis;
	}
}

PreviousGetHorizontalAxisNextDisable

Last updated 1 year ago

Was this helpful?

📖