Version: 2022.3

PrefabUtility.GetPrefabAssetType

切换到手册
public static PrefabAssetType GetPrefabAssetType (Object componentOrGameObject);

参数

componentOrGameObject 属于预制件资源或预制件实例的对象。

返回

PrefabAssetType 预制件的类型。

描述

Retrieves an enum value indicating the type of Prefab Asset, such as Regular Prefab, Model Prefab and Prefab Variant.


Did you find this page useful? Please give it a rating: