Skip to content

Commit

Permalink
fix(ReadOnlyAttribute): Now supports properties too
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGadget1024 committed Sep 28, 2024
1 parent f392393 commit 53d8812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirror/Core/Attributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 53d8812

Please sign in to comment.