public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { PropertyRect propertyRect = new PropertyRect(position); EditorGUI.BeginProperty(position, label, property); GUIDrawers.DrawFieldWithLabelPercentage(ref propertyRect, property.FindPropertyRelative(nameof(ComponentField.accessType)), labelWidth: 100, labelWidthPercentage: 0.3f); propertyRect.AllocateWidthPrecent(0.05f); GUIDrawers.DrawFieldWithLabelPercentage(ref propertyRect, property.FindPropertyRelative(nameof(ComponentField.type)), false, labelWidth: 50, labelWidthPercentage: 0.65f); GUIDrawers.DrawFieldWithLabel(ref propertyRect, property.FindPropertyRelative(nameof(ComponentField.name)), labelWidth: 100); EditorGUI.EndProperty(); }