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);
        }
Ejemplo n.º 2
0
 public void Draw(SerializedProperty property, Slices slices)
 {
     slices.AddBefore(new DrawableImpl(null, rect => DrawHeaderInternal(rect, property.displayName)));
 }