# SetReference(PanelRenderer, AuthoringIdPath)

> Sets the reference to point to the given document and path.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public void SetReference(PanelRenderer renderer, AuthoringIdPath path)
```

### Parameters

**** (\[PanelRenderer]\(/engine/6000.6/script-reference/unityengine/uielements/panelrenderer)): The [PanelRenderer](/engine/6000.6/script-reference/unityengine/uielements/panelrenderer.md) that contains the [VisualTreeAsset](/engine/6000.6/script-reference/unityengine/uielements/visualtreeasset.md) with the element we want to reference.**** (\[AuthoringIdPath]\(/engine/6000.6/script-reference/unityengine/uielements/authoringidpath)): The path of the element to reference.
