public static string WrapTextMark(string text, Color color) { color.a = 0.2f; if (string.IsNullOrWhiteSpace(text)) { return(text); } string hexColor = ColorExtensions.Color32ToStringNonAlloc(color); return($"<mark=#{hexColor}>{text}</mark>"); }
public static string WrapTextMark(string text, Color color) { color.a = 0.2f; if (string.IsNullOrWhiteSpace(text)) { return(text); } string hexColor = ColorExtensions.Color32ToStringNonAlloc(color); return($"<mark=#{hexColor}>{text}</mark>"); }