# GetContainingScope(GraphElement)

> Returns the scope containing the specified GraphElement.

## Definition

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

```csharp
public static Scope GetContainingScope(this GraphElement element)
```

### Parameters

**** (\[GraphElement]\(/engine/6000.6/script-reference/unityeditor/experimental/graphview/graphelement)):&#x20;

### Returns

| Type                                                                                 | Description |
| ------------------------------------------------------------------------------------ | ----------- |
| [Scope](/engine/6000.6/script-reference/unityeditor/experimental/graphview/scope.md) |             |
