SetPosition

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

using UnityEngine;

public class RadialMenuExample : MonoBehaviour
{
	public Vector3 newScreenPosition = new Vector3( 500, 500, 0 );

	void Update ()
	{
		// If the space bar has been pressed...
		if( Input.GetKeyDown( KeyCode.Space ) )
		{
			// Set the position of the ExampleMenu to the new position.
			UltimateRadialMenu.SetPosition( "ExampleMenu", newScreenPosition );
		}
	}
}

Last updated