Updates the text associated with the button information.
using UnityEngine;
public class RadialButtonInfoExample : MonoBehaviour
{
// BE SURE TO ASSIGN THIS IN THE INSPECTOR //
public UltimateRadialMenu radialMenu;
public UltimateRadialButtonInfo buttonInfo;
public string text = "Example";
void Start ()
{
// Register the button to the menu.
radialMenu.RegisterButton( MyCallback, buttonInfo );
// After the button info has been registered, then call the UpdateText function.
buttonInfo.UpdateText( "Example" );
}
void MyCallback ()
{
Debug.Log( "MyCallback" );
}
}