fix: Fixed field lable not shown for SyncVars

This commit is contained in:
MrGadget1024 2021-03-16 14:40:55 -04:00
parent c957500710
commit f70946a362

View File

@ -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);
}