View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0
- Last updated
- First released
- Unity version
- 5.3.4 or later
- Package size
- 15 KB
- Files
- 3
- Favorites
- 46
- Views in the past week
- 4
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
ReadOnly Attribute
Price Free
Get it free on Asset Store (opens in new tab)
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 1
ReadOnly Attribute screenshot 1
About this asset
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.
From the publisher's Asset Store listing.