Publisher | Cody Anderson |
---|---|
File size | 15.20kB |
Number of files | 3 |
Latest version | 1 |
Latest release date | 2018-12-10 01:03:12 |
First release date | 2018-12-10 01:03:12 |
Supported Unity versions | 2018.4.2 or higher |
Add the [ReadOnly] attribute before a variable to have it show in the inspector but be uneditable.
Note: The [ReadOnly] attribute will only work on serialized variables. Therefore, the variable should be public or also have the [SerializeField] attribute.
Note: The [ReadOnly] attribute will only work on serialized variables. Therefore, the variable should be public or also have the [SerializeField] attribute.