Disallow Modifications In Attribute

DisallowModificationsIn disables / grays out members, preventing modifications from being made and enables validation, providing error messages in case a modification was made prior to introducing the attribute.

public string PrefabInstanceAndNonPrefabInstance = "Prefab Instances, as well as non-prefab instances";

public string InstanceInScene = "Instances of prefabs in scenes";

public string InstanceInPrefab = "Instances of prefabs nested inside other prefabs";

public string Variant = "Prefab variant assets";

public string NonPrefabInstance = "Non-prefab component or gameobject instances in scenes";

public string PrefabInstance = "Instances of regular prefabs, and prefab variants in scenes or nested in other prefabs";