Advertisement
Guest User

String Color Extension Method

a guest
Feb 10th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.15 KB | None | 0 0
  1. public static string Color(this string s, Color c) {
  2.     string cHex = ColorUtility.ToHtmlStringRGBA(c);
  3.     return "<color=#" + cHex + ">" + s + "</color>";
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement