Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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