public static Rect DrawTopLabel(Rect position, string label, bool usePadding = true) { //set initial rect Rect newPosition = EditorTool.GetStartingPosition(position, usePadding); //draw label EditorGUI.LabelField(newPosition, label, EditorStyles.boldLabel); //add indent newPosition = GetIndentedPosition(newPosition); return(newPosition); }
protected Rect DrawTopLabel(Rect position) { //set initial rect Rect newPosition = EditorTool.GetStartingPosition(position); //draw label EditorGUI.LabelField(newPosition, name.stringValue, EditorStyles.boldLabel); //add indent newPosition = EditorTool.GetIndentedPosition(newPosition); return(newPosition); }