Tri-Inspector/Runtime/Attributes/PropertyTooltipAttribute.cs
2023-03-12 11:38:39 +04:00

17 lines
390 B
C#

using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public class PropertyTooltipAttribute : Attribute
{
public string Tooltip { get; }
public PropertyTooltipAttribute(string tooltip)
{
Tooltip = tooltip;
}
}
}