文档

Unity Engine

Unity Engine

RemoveMonoBehavioursWithMissingScript(GameObject)

Removes the MonoBehaviours with a missing script from the given GameObject.
阅读时间1 分钟最后更新于 1 个月前

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

intThe number of MonoBehaviours with a missing script that were removed.

Remarks