Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PrefabAssetType

Enum indicating the type of Prefab Asset, such as Regular, Model and Variant.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Enum
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public enum PrefabAssetType

Remarks

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

Fields

Value

Description

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.
ModelThe object being queried is part of a Model Prefab.
NotAPrefabThe object being queried is not part of a Prefab at all.
RegularThe object being queried is part of a regular Prefab.
VariantThe object being queried is part of a Prefab Variant.