RemoveInfoFromButton

Removes this information from the button on the radial menu.

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 RemoveInfoFromButton function.
		buttonInfo.RemoveInfoFromButton();
	}
	
	void MyCallback ()
	{
		Debug.Log( "MyCallback" );
	}
}

Last updated