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

ClearButtonInformation

Clears all the registered button information and leaves the menu empty with the same number of buttons.

using UnityEngine;

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

	void Update ()
	{
		// If the space bar has been pressed...
		if( Input.GetKeyDown( KeyCode.Space ) )
		{
			// Clear all the stored button informations, but leave the button count on the menu.
			radialMenu.ClearButtonInformation();
		}
	}
}

Last updated