# GetMonoBehavioursWithMissingScriptCount(GameObject)

> Gets the number of MonoBehaviours with a missing script for the given GameObject.

## Definition

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

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

### Parameters

**** (\[GameObject]\(/engine/6000.5/script-reference/unityengine/gameobject)): GameObject to query.

### Returns

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

### Remarks

Additional Resources: [GameObjectUtility.RemoveMonoBehavioursWithMissingScript](/engine/6000.5/script-reference/unityeditor/gameobjectutility/removemonobehaviourswithmissingscript.md).
