INNER CODE UNIT · C#
TooltipAttribute
GloriousPtr/ArcGameEngine · Arc-ScriptCore/src/Attributes/Attributes.cs:57
public class TooltipAttribute : Attribute
{
internal string Message;
/// <summary>
/// Shows the tooltip when mouse is hovered over the field.
/// </summary>
/// <param name="message">Tooltip message.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public TooltipAttribute(string message) => Message = message;
}
/// <summary>
/// Change the input field to a slider.
/// Use this attribute to make a number type variable (byte, ubyte, short, ushort, int, uint, long, ulong, float, double) in a script be restricted to a specific range.
/// </summary>
[AttributeUsage(AttributeTargets.Field)]
[UsedImplicitly(ImplicitUseKindFlags.Default, ImplicitUseTargetFlags.WithMembers)]