-
Notifications
You must be signed in to change notification settings - Fork 0
Read Only Field
Paulo edited this page Jul 31, 2021
·
1 revision
The show if attribute easily provides the functionality of making fields only readable through the inspector. Take a look at the example below.
[SerializeField, ReadOnlyField]
private int number = 10;
This will make it so that the number
field is greyed-out and only readable in the inspector.