Tri-Inspector/Runtime/Attributes/TitleAttribute.cs

18 lines
445 B
C#
Raw Normal View History

2021-12-07 10:20:36 -05:00
using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
2023-03-11 16:18:57 -05:00
public class TitleAttribute : Attribute
2021-12-07 10:20:36 -05:00
{
public string Title { get; }
2023-03-11 16:32:53 -05:00
public bool HorizontalLine { get; set; } = true;
2021-12-07 10:20:36 -05:00
public TitleAttribute(string title)
{
Title = title;
}
}
}