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