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

Disable

Disables the radial menu so that it is not visible and will not receive input.

using UnityEngine;

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

	void Update ()
	{
		// If the space key was pressed this frame and the radial menu is already enabled, call Disable() to enable the menu.
		if( Input.GetKeyDown( KeyCode.Space ) && radialMenu.IsEnabled )
			radialMenu.Disable();
	}
}

Last updated