> For the complete documentation index, see [llms.txt](https://docs.tankandhealerstudio.com/assets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tankandhealerstudio.com/assets/ultimateradialmenu/documentation/ultimateradialmenu/static-methods/setparent.md).

# SetParent

{% code overflow="wrap" lineNumbers="true" fullWidth="true" %}

```csharp
using UnityEngine;

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

	void Update ()
	{
		// If the space bar has been pressed...
		if( Input.GetKeyDown( KeyCode.Space ) )
		{
			// Set the parent of the radial menu to the right hand transform assigned in the inspector.
			UltimateRadialMenu.SetParent( "ExampleMenu", rightHandTransform, Vector3.zero, Quaternion.identity );
		}
	}
}
```

{% endcode %}
