文档

Unity Engine

Unity Engine

IsPrefabAssetMissing(Object)

Returns true if the given object is part of a Prefab instance but the source asset is missing.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
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.