using System; namespace GlitchyEngine.Editor; /// /// Specifies a custom number format for the input field in the editor. /// /// /// This attribute is only applicable to numerical fields like , , etc. /// [AttributeUsage(AttributeTargets.Field)] public sealed class NumberFormatAttribute : Attribute { /// /// The number format for the input field. /// /// /// This doesn't use C# number formatting, but rather the C-style printf number formatting. /// public string Format { get; private set; } /// /// Initializes a new instance of the with a custom number format. /// /// public NumberFormatAttribute(string format) { Format = format; } }