using System; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] public sealed class FieldLabelFromArrayIndexAttribute : PredrawerModifierPropertyAttribute { public readonly string prefix; public readonly string postfix; public readonly int offset; public FieldLabelFromArrayIndexAttribute(string prefix, int offset = 0) { this.prefix = prefix; postfix = null; this.offset = offset; } public FieldLabelFromArrayIndexAttribute(string prefix, string postfix, int offset = 0) { this.prefix = prefix; this.postfix = postfix; this.offset = offset; } } }