# RemoveMonoBehavioursWithMissingScript(GameObject)

> Removes the MonoBehaviours with a missing script from the given GameObject.

## Definition

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

```csharp
public static int RemoveMonoBehavioursWithMissingScript(GameObject go)
```

### Parameters

**** (\[GameObject]\(/engine/6000.3/script-reference/unityengine/gameobject)): The GameObject to remove MonoBehaviours with a missing script from.

### Returns

| Type                                                       | Description                                                           |
| ---------------------------------------------------------- | --------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The number of MonoBehaviours with a missing script that were removed. |

### Remarks

Additional Resources: [GameObjectUtility.GetMonoBehavioursWithMissingScriptCount](/engine/6000.3/script-reference/unityeditor/gameobjectutility/getmonobehaviourswithmissingscriptcount.md).
