using System;
using UnityEngine;
namespace OM
{
///
/// An attribute to group properties in the inspector.
/// it allows you to specify a group name, color, and an optional toggle name.
///
[AttributeUsage(AttributeTargets.Field)]
public class OM_GroupAttribute : PropertyAttribute
{
public string GroupName { get; }
public string GroupColor { get; }
public string ToggleName { get; }
///
/// Initializes a new instance of the class
///
///
///
///
public OM_GroupAttribute(string groupName, string groupColor, string toggleName = null)
{
GroupName = groupName;
GroupColor = groupColor;
ToggleName = toggleName;
}
}
}