This version of Unity is unsupported.

GameObjectUtility.GetMonoBehavioursWithMissingScriptCount

public static int GetMonoBehavioursWithMissingScriptCount(GameObject go);

Parameters

goGameObject to query.

Returns

int The number of MonoBehaviours with a missing script.

Description

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