ClearMenu

Removes all of the radial buttons from the radial menu. If a value is provided for the buttonCount parameter, the radial menu will ensure that it does not remove more than that count of buttons.

using UnityEngine;

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

	void Start ()
	{
		// Clear the radial menu to start, leaving 4 buttons on the menu.
		radialMenu.ClearMenu( 4 );
		
		// OR //
		
		// Just clear the menu.
		radialMenu.ClearMenu();
	}
}

Last updated