using UnityEngine; namespace EditorAttributes { /// /// Attribute to draw the members of a serialized struct or class in a table instead of a dropdown /// public class DataTableAttribute : PropertyAttribute { public bool DrawInBox { get; private set; } public bool ShowLabels { get; private set; } /// /// Attribute to draw the members of a serialized struct or class in a table instead of a dropdown /// /// Draw the table members in a nice box /// Show the labels of the members public DataTableAttribute(bool drawInBox = false, bool showLabels = true) { DrawInBox = drawInBox; ShowLabels = showLabels; } } }