Firstborn/Library/PackageCache/com.unity.inputsystem@1.4.4/InputSystem/Utilities/DisplayStringFormatAttribut...

23 lines
751 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
using System;
namespace UnityEngine.InputSystem.Utilities
{
/// <summary>
/// Provide a format string to use when creating display strings for instances of the class.
/// </summary>
[AttributeUsage(AttributeTargets.Class, Inherited = true)]
public class DisplayStringFormatAttribute : Attribute
{
/// <summary>
/// Format template string in the form of "{namedPart} verbatimText". All named parts enclosed in
/// curly braces are replaced from context whereas other text is included as is.
/// </summary>
public string formatString { get; set; }
public DisplayStringFormatAttribute(string formatString)
{
this.formatString = formatString;
}
}
}