Tri-Inspector/Runtime/Attributes/PropertyTooltipAttribute.cs

17 lines
397 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)]
[Conditional("UNITY_EDITOR")]
public sealed class PropertyTooltipAttribute : Attribute
{
public string Tooltip { get; }
public PropertyTooltipAttribute(string tooltip)
{
Tooltip = tooltip;
}
}
}