Unity-MoreAttributes

A set of custom attributes


Project maintained by kevincastejon Hosted on GitHub Pages — Theme by mattgraham

ReadOnlyProp

Prevents a property from being edited on the Inspector.

How to use

Put the attribute in front of a property.

Examples

[ReadOnlyProp]
public int healthPoints;
[ReadOnlyReadOnlyProp]
public int damages;