From 53d881228132a2a5b78710dfdd4e20e3721010b1 Mon Sep 17 00:00:00 2001 From: MrGadget <9826063+MrGadget1024@users.noreply.github.com> Date: Sat, 28 Sep 2024 06:54:04 -0400 Subject: [PATCH] fix(ReadOnlyAttribute): Now supports properties too --- Assets/Mirror/Core/Attributes.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Core/Attributes.cs b/Assets/Mirror/Core/Attributes.cs index a76adc6ac..8f74604d8 100644 --- a/Assets/Mirror/Core/Attributes.cs +++ b/Assets/Mirror/Core/Attributes.cs @@ -90,7 +90,7 @@ public class ShowInInspectorAttribute : Attribute {} /// /// Used to make a field readonly in the inspector /// - [AttributeUsage(AttributeTargets.Field)] + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] public class ReadOnlyAttribute : PropertyAttribute {} ///