# AcceptsElement(GraphElement, ref string)

> Whether an element can be added to this group.

## Definition

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

## AcceptsElement(GraphElement, string)

```csharp
public override bool AcceptsElement(GraphElement element, ref string reasonWhyNotAccepted)
```

### Parameters

**** (\[GraphElement]\(/engine/6000.6/script-reference/unityeditor/experimental/graphview/graphelement)): The element to add.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The reason that indicates why the element is not accepted.

### Returns

| Type                                                          | Description                                                                         |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns false if the specified element is a scope or group. Otherwise returns true. |
