public static void WithLabelField(this global::UnityEditor.Editor editor, string label, string value) { EditorGUILayout.BeginHorizontal(); editor.WithLabel(label); EditorGUILayout.LabelField(value); EditorGUILayout.EndHorizontal(); }
public static float WithNumberField(this global::UnityEditor.Editor editor, string label, float value) { EditorGUILayout.BeginHorizontal(); editor.WithLabel(label); var result = EditorGUILayout.FloatField(value); EditorGUILayout.EndHorizontal(); return(result); }