GameObjectUtility.RemoveMonoBehavioursWithMissingScript

public static int RemoveMonoBehavioursWithMissingScript(GameObject go);

Parameters

go The 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.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答