Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PrefabType

Description

The type of a prefab object as returned by EditorUtility.GetPrefabType.

Variables

NoneThe object is not a prefab nor an instance of a prefab.
PrefabThe object is a user created prefab asset.
ModelPrefabThe object is an imported 3D model asset.
PrefabInstanceThe object is an instance of a user created prefab.
ModelPrefabInstanceThe object is an instance of an imported 3D model.
MissingPrefabInstanceThe object was an instance of a prefab, but the original prefab could not be found.
DisconnectedPrefabInstanceThe object is an instance of a user created prefab, but the connection is broken.
DisconnectedModelPrefabInstanceThe object is an instance of an imported 3D model, but the connection is broken.