# VisualElementReference

> Creates a new empty VisualElementReference.

## Definition

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

## VisualElementReference()

Creates a new empty VisualElementReference.

```csharp
public VisualElementReference()
```

## VisualElementReference(PanelRenderer, AuthoringIdPath)

Creates a new VisualElementReference pointing to the given renderer and path.

```csharp
public VisualElementReference(PanelRenderer renderer, AuthoringIdPath path)
```

### Parameters

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