UpdatePositioning

Updates the positioning of the radial menu according to the user's options.

using UnityEngine;

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

	void Update ()
	{
		// If the space bar has been pressed...
		if( Input.GetKeyDown( KeyCode.Space ) )
		{
			// Make the radial menu massive!!
			radialMenu.menuSize = 10.0f;
			
			// Update the positioning of the radial menu on the screen.
			radialMenu.UpdatePositioning();
		}
	}
}

Last updated