mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix(ReadOnlyAttribute): Now supports properties too
This commit is contained in:
parent
f392393cdb
commit
53d8812281
@ -90,7 +90,7 @@ public class ShowInInspectorAttribute : Attribute {}
|
||||
/// <summary>
|
||||
/// Used to make a field readonly in the inspector
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
|
||||
public class ReadOnlyAttribute : PropertyAttribute {}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user