Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Method extensions
- public static void LogMethod<T>(this T instance,string methodName) =>
- Debug.Log($"{typeof(T).Name.ToHexColor("39c8b0")}.{methodName.ToHexColor("ffc66d")}", instance as Object);
- public static string ToHexColor(this string value, string hexColor) =>
- $"<b><color=#{hexColor}>{value}</color></b>";
- // Rider Live Template Shortcut : `mlog`
- this.LogMethod(nameof($MethodName$));
Add Comment
Please, Sign In to add comment