Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RemoveMonoBehavioursWithMissingScript(GameObject)

Removes the MonoBehaviours with a missing script from the given GameObject.
Read time 1 minuteLast updated 4 days ago

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