Skip to content

Instantly share code, notes, and snippets.

@smkplus
Created May 15, 2019 01:59
Show Gist options
  • Save smkplus/11112109de1b8d3465b8fec80cf19c70 to your computer and use it in GitHub Desktop.
Save smkplus/11112109de1b8d3465b8fec80cf19c70 to your computer and use it in GitHub Desktop.
Colorful Debug.Log Unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Console : Debug
{
public static void Log(string _message,Color _color){
ColorUtility.ToHtmlStringRGB(_color);
Debug.Log(string.Format("<color=#{0}>{1}</color>",ColorUtility.ToHtmlStringRGB(_color),_message));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment