ドキュメント

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.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.