public void Draw(SerializedProperty property, Slices slices) { var attribute = property.GetCustomAttribute <TooltipAttribute>(); if (attribute == null) { return; } var slice = new DrawableImpl(rect => EditorGUI.LabelField(rect, new GUIContent("", attribute.tooltip))); slices.AddAfter(slice); }
public void Draw(SerializedProperty property, Slices slices) { var attribute = property.GetCustomAttribute <HighlightAttribute>(); if (attribute == null) { return; } var slice = new DrawableImpl(rect => GuiUtil.DrawRect(rect.Extend(1), attribute.Color)); slices.AddBefore(slice); }