using UnityEngine;
namespace EditorAttributes
{
///
/// Attribute to display the specified fields vertically
///
public class VerticalGroupAttribute : PropertyAttribute
{
public bool DrawInBox { get; private set; }
public string[] FieldsToGroup { get; private set; }
///
/// Attribute to display the specified fields vertically
///
/// The name of the fields to group
public VerticalGroupAttribute(params string[] fieldsToGroup)
{
FieldsToGroup = fieldsToGroup;
DrawInBox = false;
}
///
/// Attribute to display the specified fields vertically
///
/// Draw the group in a nice box
/// The name of the fields to group
public VerticalGroupAttribute(bool drawInBox, params string[] fieldsToGroup)
{
FieldsToGroup = fieldsToGroup;
DrawInBox = drawInBox;
}
}
}