For the complete documentation index, see llms.txt. This page is also available as Markdown.

ReturnComponent

This function returns the Ultimate Joystick component that has been registered with the provided key.

using UnityEngine;

public class JoystickExample : MonoBehaviour
{
	UltimateJoystick joystick;

	void Start ()
	{
    		// Store the Ultimate Joystick registered with the name: Movement.
        	joystick = UltimateJoystick.ReturnComponent( "Movement" );
        	
        	// Now you can use the joystick variable.
                joystick.UpdatePositioning( 50, 50 );
	}
}

Last updated