⚪
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

Disable

Disables the Ultimate Joystick.

using UnityEngine;

public class JoystickExample : MonoBehaviour
{
	// BE SURE TO ASSIGN THIS IN THE INSPECTOR //
	public UltimateJoystick joystick;
	
	void Update ()
	{
		// If the space key has been pressed...
    		if( Input.GetKeyDown( KeyCode.Space ) )
        	{
        		// Disable the joystick.
			joystick.Disable();
        	}
	}
}

PreviousGetVerticalAxisNextEnable

Last updated 1 year ago

Was this helpful?

📖