From f70946a3622af9936d73922ebfb49677df3df88a Mon Sep 17 00:00:00 2001 From: MrGadget1024 Date: Tue, 16 Mar 2021 14:40:55 -0400 Subject: [PATCH] fix: Fixed field lable not shown for SyncVars --- Assets/Mirror/Editor/SyncVarAttributeDrawer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Editor/SyncVarAttributeDrawer.cs b/Assets/Mirror/Editor/SyncVarAttributeDrawer.cs index cfb2e712e..2356a5e23 100644 --- a/Assets/Mirror/Editor/SyncVarAttributeDrawer.cs +++ b/Assets/Mirror/Editor/SyncVarAttributeDrawer.cs @@ -16,7 +16,7 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten Rect valueRect = new Rect(position.x, position.y, valueWidth, position.height); Rect labelRect = new Rect(position.x + valueWidth, position.y, syncVarIndicatorRect.x, position.height); - EditorGUI.PropertyField(valueRect, property, true); + EditorGUI.PropertyField(valueRect, property, label, true); GUI.Label(labelRect, syncVarIndicatorContent, EditorStyles.miniLabel); }