文档

Unity Engine


User Manual

Script Reference

Unity Engine


GetPrefabAssetType(Object)

Retrieves an enum value indicating the type of Prefab Asset, such as Regular Prefab, Model Prefab and Prefab Variant.
阅读时间1 分钟最后更新于 24 天前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static PrefabAssetType GetPrefabAssetType(Object componentOrGameObject)

Parameters

componentOrGameObject

An object that is part of a Prefab Asset or Prefab instance.

Returns

Type

Description

PrefabAssetTypeThe type of Prefab.