Show In Attribute

Shows a member based on which type of a prefab and instance it is in.

[ShowIn(PrefabKind.InstanceInScene)]
public string InstanceInScene = "Instances of prefabs in scenes";

[ShowIn(PrefabKind.InstanceInPrefab)]
public string InstanceInPrefab = "Instances of prefabs nested inside other prefabs";

[ShowIn(PrefabKind.Regular)]
public string Regular = "Regular prefab assets";

[ShowIn(PrefabKind.Variant)]
public string Variant = "Prefab variant assets";

[ShowIn(PrefabKind.NonPrefabInstance)]
public string NonPrefabInstance = "Non-prefab component or gameobject instances in scenes";

[ShowIn(PrefabKind.PrefabInstance)]
public string PrefabInstance = "Instances of regular prefabs, and prefab variants in scenes or nested in other prefabs";

[ShowIn(PrefabKind.PrefabAsset)]
public string PrefabAsset = "Prefab assets and prefab variant assets";

[ShowIn(PrefabKind.PrefabInstanceAndNonPrefabInstance)]
public string PrefabInstanceAndNonPrefabInstance = "Prefab Instances, as well as non-prefab instances";