# canDuplicateGameObject

> Optional filtering functions invoked to determine if a GameObject can be duplicated before any action is taken.

## Definition

* **Type:** Field
* **Namespace:** [UnityEditor](/engine/6000.3/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static Func<GameObject, bool> canDuplicateGameObject
```

### Remarks

All registered delegates of canDuplicateGameObject will be evaluated and must return true for a GameObject to be duplicated. [Selection.gameObjects](/engine/6000.3/script-reference/unityeditor/selection/gameobjects.md) will be updated with the GameObjects that successfully passed the filtering functions.

Subscribe to the [rejectedGameObjects](/engine/6000.3/script-reference/unityeditor/clipboardutility/rejectedgameobjects.md) event to receive a callback, providing an array of GameObjects that failed one or more of the filtering functions.
