示例#1
0
        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);
        }
示例#2
0
        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);
        }