usingUnityEngine;publicclassRadialMenuExample:MonoBehaviour{publicUltimateRadialButtonInfo buttonInfo;voidStart () { // This value can be set in the inspector, or here before registering the information to the radial menu.buttonInfo.id=101;UltimateRadialMenu.RegisterButton( "ExampleMenu", UseItem, buttonInfo ); }voidUseItem ( int id ) { // This is where you can check your item dictionary.Debug.Log( $"UseItem called for item: {id}" ); }}
string Callback
usingUnityEngine;publicclassRadialMenuExample:MonoBehaviour{publicUltimateRadialButtonInfo buttonInfo;voidStart () { // This value can be set in the inspector, or here before registering the information to the radial menu.buttonInfo.key="HealthPotion";UltimateRadialMenu.RegisterButton( "ExampleMenu", UseItem, buttonInfo ); }voidUseItem ( string key ) { // This is where you can check your item dictionary.Debug.Log( $"UseItem called for: {key}" ); }}