⚪
Tank & Healer Studio Assets
Return to Website
Ultimate Radial Menu
Ultimate Radial Menu
  • 🔵INTRODUCTION
    • 👋Welcome!
    • ⚡Getting Started
    • 📺Video Tutorials
  • 📖Documentation
    • UltimateRadialMenu
      • Public Methods
        • RegisterButton (+3 overloads)
        • Enable
        • Disable
        • DisableImmediate
        • CreateEmptyButton
        • ClearMenu
        • RemoveButton
        • ClearButtonInformation
        • SetPosition
        • ResetPosition
        • SetParent
        • UpdatePositioning
      • Static Methods
        • ReturnComponent
        • RegisterButton (+3 overloads)
        • Enable
        • Disable
        • DisableImmediate
        • CreateEmptyButton
        • ClearMenu
        • RemoveButton
        • ClearButtonInformation
        • SetPosition
        • ResetPosition
        • SetParent
      • Events
        • OnButtonEnter
        • OnMenuDisabled
      • Public Classes
        • UltimateRadialButton
      • Properties
    • UltimateRadialButtonInfo
      • Public Methods
        • UpdateIcon
        • UpdateText
        • UpdateDescription
        • SelectButton
        • DeselectButton
        • ToggleSelect
        • EnableButton
        • DisableButton
        • RemoveFromMenu
        • RemoveInfoFromButton
        • GetButtonIndex
      • Leave us a review!
    • UltimateRadialMenuInputManager
      • Public Methods
        • SendRaycastInput
  • 💡Tips & Tricks
    • Creating a Custom Input Manager
    • Sub Menu Add-on
  • 🤝Helpful Links
    • Support Discord
    • Other Products
Powered by GitBook
On this page

Was this helpful?

  1. Documentation
  2. UltimateRadialMenu
  3. Static Methods

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
{
	void Start ()
	{
		// Clear the radial menu to start, leaving 4 buttons on the menu.
		UltimateRadialMenu.ClearMenu( "ExampleMenu", 4 );
		
		// OR //
		
		// Just clear the menu.
		UltimateRadialMenu.ClearMenu( "ExampleMenu" );
	}
}
PreviousCreateEmptyButtonNextRemoveButton

Last updated 1 year ago

Was this helpful?

📖