기술 자료

Unity Engine

Unity Engine

IsPartOfModelPrefab(Object)

Returns true if the given object is part of a Model Prefab Asset or Model Prefab instance.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static bool IsPartOfModelPrefab(Object componentOrGameObject)

Parameters

componentOrGameObject

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

Returns

Type

Description

boolTrue if the object is part of a Model Prefab.

Remarks

An object is part of a Model Prefab instance if it has a Model Prefab as outermost Prefab instance root. To get the outermost Prefab instance root, use PrefabUtility.GetOutermostPrefabInstanceRoot.