GetMonoBehavioursWithMissingScriptCount(GameObject)
Gets the number of MonoBehaviours with a missing script for the given GameObject.
阅读时间1 分钟最后更新于 24 天前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static int GetMonoBehavioursWithMissingScriptCount(GameObject go)
Parameters
GameObject to query.
Returns
Type | Description |
|---|---|
| int | The number of MonoBehaviours with a missing script. |
Remarks
Additional Resources: GameObjectUtility.RemoveMonoBehavioursWithMissingScript.