Enable In Attribute

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

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

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

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

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

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

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

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

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