ResetPosition

Resets the position of the radial menu back to its original position.

using UnityEngine;

public class RadialMenuExample : MonoBehaviour
{
	// BE SURE TO ASSIGN THIS IN THE INSPECTOR //
	public UltimateRadialMenu radialMenu;

	void Update ()
	{
		// If the escape key has been pressed...
		if( Input.GetKeyDown( KeyCode.Escape ) )
		{
			// Reset the position of the menu on the screen.
			radialMenu.ResetPosition();
		}
	}
}

Last updated