Enable

Enables the radial menu so that it is visible and can be interacted with.

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 NOT enabled yet, call Enable() to enable the menu.
		if( Input.GetKeyDown( KeyCode.Space ) && !radialMenu.IsEnabled )
			radialMenu.Enable();
	}
}

Last updated