PrefabUtility.GetPrefabAssetType

Declaration

public static PrefabAssetType GetPrefabAssetType(Object componentOrGameObject);

Parameters

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

Returns

PrefabAssetType The type of Prefab.

Description

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: