# GetElementByGuid(string)

> Get any element with a given GUID.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Experimental.GraphView](/engine/6000.3/script-reference/unityeditor/experimental/graphview.md)
* **Assembly:** UnityEditor

```csharp
public GraphElement GetElementByGuid(string guid)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The GUID.

### Returns

| Type                                                                                               | Description                                                                                                                |
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| [GraphElement](/engine/6000.3/script-reference/unityeditor/experimental/graphview/graphelement.md) | The first element with the given GUID, within all of GraphView, not just elements contained in layers. Null if none found. |
