fix(ReadOnlyAttribute): Now supports properties too

This commit is contained in:
MrGadget 2024-09-28 06:54:04 -04:00
parent f392393cdb
commit 53d8812281

View File

@ -90,7 +90,7 @@ public class ShowInInspectorAttribute : Attribute {}
/// <summary> /// <summary>
/// Used to make a field readonly in the inspector /// Used to make a field readonly in the inspector
/// </summary> /// </summary>
[AttributeUsage(AttributeTargets.Field)] [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public class ReadOnlyAttribute : PropertyAttribute {} public class ReadOnlyAttribute : PropertyAttribute {}
/// <summary> /// <summary>