コード例 #1
0
 /// <summary>
 /// Formats <paramref name="toStylize"/> according to <paramref name="fontStyle"/>.
 /// </summary>
 /// <param name="fontStyle"></param>
 /// <param name="toStylize"></param>
 /// <returns></returns>
 /// <seealso cref="Stylize(string,UnityEngine.FontStyle)"/>
 /// <a href="https://docs.unity3d.com/2018.3/Documentation/Manual/StyledText.html">Unity Manual - Rich Text</a>
 public static string Stylize(this FontStyle fontStyle, string toStylize) {
     return $"{fontStyle.Begin()}{toStylize}{fontStyle.End()}";
 }