Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsPrefabAssetMissing(Object)

Returns true if the given object is part of a Prefab instance but the source asset is missing.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static bool IsPrefabAssetMissing(Object instanceComponentOrGameObject)

Parameters

instanceComponentOrGameObject

The object to check. Must be a component or GameObject.

Returns

Type

Description

boolTrue if the given object is part of a Prefab instance but the source asset is missing.