UltimateRadialMenu.InsertRadialButton
public void InsertRadialButton( int buttonIndex, Action ButtonCallback, UltimateRadialButtonInfo newRadialButtonInfo );
public void InsertRadialButton( int buttonIndex, Action<int> ButtonCallback, UltimateRadialButtonInfo newRadialButtonInfo );
public void InsertRadialButton( int buttonIndex, Action<string> ButtonCallback, UltimateRadialButtonInfo newRadialButtonInfo );
public void InsertRadialButton( int buttonIndex, Action<int> ButtonCallback, UltimateRadialButtonInfo newRadialButtonInfo );
public void InsertRadialButton( int buttonIndex, Action<string> ButtonCallback, UltimateRadialButtonInfo newRadialButtonInfo );
Parameters |
Description |
buttonIndex |
The index to insert the new radial button into the radial menu. |
ButtonCallback |
This variable is where you will want to put the function that you want the radial button to call when being interacted with. For more information about the ButtonCallback parameter and how use it, click here. |
newRadialButtonInfo |
The new information to apply to the radial button. For more information about the UltimateRadialButtonInfo class and how to use it, please click here. |
Description
Inserts a new radial button at the targeted index.
Description
This example code shows how to insert a radial button at the first index of the menu. In this example it is showing how items can be added, but the same method can be used for any type of button that you want to add.
This example code shows how to insert a radial button at the first index of the menu. In this example it is showing how items can be added, but the same method can be used for any type of button that you want to add.