SetPosition

Updates the radial menu's position to the new position on the screen.

using UnityEngine;

public class RadialMenuExample : MonoBehaviour
{
	// BE SURE TO ASSIGN THIS IN THE INSPECTOR //
	public UltimateRadialMenu radialMenu;
	public Vector3 newScreenPosition = new Vector3( 500, 500, 0 );

	void Update ()
	{
		// If the space bar has been pressed...
		if( Input.GetKeyDown( KeyCode.Space ) )
		{
			radialMenu.SetPosition( newScreenPosition );
		}
	}
}

Last updated