Hide In Attribute

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

[HideIn(PrefabKind.InstanceInScene)]        
public string InstanceInScene = "Instances of prefabs in scenes";
 
[HideIn(PrefabKind.InstanceInPrefab)]       
public string InstanceInPrefab = "Instances of prefabs nested inside other prefabs";

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

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

[HideIn(PrefabKind.NonPrefabInstance)]      
public string NonPrefabInstance = "Non-prefab component or gameobject instances in scenes";
 
[HideIn(PrefabKind.PrefabInstance)]         
public string PrefabInstance = "Instances of regular prefabs, and prefab variants in scenes or nested in other prefabs";

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

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