/// <summary> /// Formats <paramref name="toStylize"/> according to <paramref name="style"/>. /// </summary> /// <example> /// "yolo".<see cref="Stylize(string,UnityEngine.FontStyle)">Stylize</see>(<see cref="FontStyle.Bold"/>) == <![CDATA["<b>yolo</b>"]]>; /// </example> /// <param name="toStylize"></param> /// <param name="style"></param> /// <returns></returns> /// <seealso cref="Stylize(UnityEngine.FontStyle,string)"/> /// <a href="https://docs.unity3d.com/2018.3/Documentation/Manual/StyledText.html">Unity Manual - Rich Text</a> public static string Stylize(this string toStylize, FontStyle style) { return style.Stylize(toStylize); }