18
2020
Debug.Log: Show actual color from Color variable
Had to debug what color is the script returning for mouse pixel position, but printing out the value didn’t really help:Debug.Log(col);
Since the output is like this (you don’t know whats the actual color)RGBA(0,349, 0,204, 0,416, 0,000)
Enter Debug.Log with <color></color> and utf8 block:Debug.Log("<color=#"+ColorUtility.ToHtmlStringRGB(col)+">██████████</color> = "+col);

Snippet, if copying from blog is messed up:
https://gist.github.com/unitycoder/37872953bd27901391ed0b27d4702e9c
Related Posts
Leave a comment
Recent posts
- Adding Real World Location to Ice Fishing Prototype
- [web tool] Image Channel Inspector : AlphaScope
- Editor Tool: Smart Recompile (don’t recompile if edit comments)
- Editor Tool: Scene Size Analyzer
- LudumDare 60: Old Tech
- uBasic Scripting Language for Unity
- GreaseMonkey+Editor Plugin: 1-Click Copy script from ChatGPT (Web) to Unity Editor (as script)
- Editor Tool: Property Watcher
- .unityignore : Hide files from Project window
- PostBuild Script to Create Single exe Standalone File
- Game Loop Designer
- Favorites in PackageManager
Recent Comments
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by











