GameObjectUtility.RemoveMonoBehavioursWithMissingScript

public static int RemoveMonoBehavioursWithMissingScript(GameObject go);

Parameters

goThe GameObject to remove MonoBehaviours with a missing script from.

Returns

int The number of MonoBehaviours with a missing script that were removed.

Description

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

Did you find this page useful? Please give it a rating: