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

DeselectButton

Deselects the button on the radial menu that this button information is assigned to.

using UnityEngine;

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

	void Start ()
	{
		// Register the button to the menu.
		radialMenu.RegisterButton( MyCallback, buttonInfo );
		
		// After the button info has been registered, then call the DeselectButton function.
		buttonInfo.DeselectButton();
	}
	
	void MyCallback ()
	{
		Debug.Log( "MyCallback" );
	}
}

Last updated