⚪
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. Events

OnMenuDisabled

This callback is called when the Ultimate Radial Menu has been disabled.

In the example below, the current button that is being hovered will be interacted with when disabling the menu.

using UnityEngine;

public class RadialMenuEventExample : MonoBehaviour
{
    // BE SURE TO ASSIGN THIS IN THE INSPECTOR //
    public UltimateRadialMenu radialMenu;
    
    void Start ()
    {
        radialMenu.OnMenuDisabled += () =>
        {
            // If there is no current hovered button then just return.
	    if( radialMenu.CurrentButtonIndex < 0 )
	        return;
	    
	    // Check any other conditional here.
	    
	    // Interact with the current hovered button.
	    radialMenu.UltimateRadialButtonList[ radialMenu.CurrentButtonIndex ].OnInteract();
        };
    }
}
PreviousOnButtonEnterNextPublic Classes

Last updated 6 months ago

Was this helpful?

📖