Version: 2023.2
LanguageEnglish
  • C#

PrefabAssetType

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Enum indicating the type of Prefab Asset, such as Regular, Model and Variant.

For an object on a Prefab Asset, the asset itself is checked. For an object on a Prefab instance, its corresponding asset is checked.

Properties

NotAPrefabThe object being queried is not part of a Prefab at all.
RegularThe object being queried is part of a regular Prefab.
ModelThe object being queried is part of a Model Prefab.
VariantThe object being queried is part of a Prefab Variant.
MissingAssetThe object being queried is part of a Prefab instance, but because the asset is missing the actual type of Prefab can’t be determined.