A set of custom attributes
Prevents a property from being edited on the inspector in PlayMode. The behaviour can be inverted so the property is editable only in PlayMode.
Put the attribute in front of a property.
[ReadOnlyOnPlay]
public int healthPoints;
[ReadOnlyOnPlay(true)]
public int damages;