GetMonoBehavioursWithMissingScriptCount(GameObject)
Gets the number of MonoBehaviours with a missing script for the given GameObject.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static int GetMonoBehavioursWithMissingScriptCount(GameObject go)
Parameters
GameObject to query.
Returns
Type | Description |
|---|---|
| int | The number of MonoBehaviours with a missing script. |
Remarks
Additional Resources: GameObjectUtility.RemoveMonoBehavioursWithMissingScript.