18
2020
Shader: Color Cycling
Color Cycling Shader test, because. Shader Source:https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Shaders/2D/Effects/ColorCycle.shader How it works?Gray color value is used to pick color from the gradient, if gray texture pixel is 0.5, then you get that turquoise color from gradient texture.
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); […]
25
2019
Enable HDR Color picker for Shader or Script
I needed HDR color for some old Unlit/Color-shader, and for c# script also, found out that you can add this attribute for the shader: And for the script: More info:https://docs.unity3d.com/ScriptReference/ColorUsageAttribute.htmlhttps://docs.unity3d.com/Manual/SL-Properties.html Also make sure your Camera has [x] HDR enabled
20
2018
Use adb logcat with Colors
Had problems finding some Debug.LogError messages in the android logcat output, so googled around and sure enough you can enable output colors easily! Just add -v color parameter: adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG -v color Note: Default windows Command Prompt doesn’t support […]
19
2018
HSV Debugging and Color Match Shader
Quick test for color matching using shader, by converting colors into HSV and comparing target color with h-s-v threshold values. See Shader source at the bottom. (main image: Changing target color, shows inverted color for the texture in that matching hue position) Shader has different […]
15
2014
[Asset Store] Mobile Paint *now free
Simple touch paint program, optimized for mobiles. — Github: https://github.com/unitycoder/UnityMobilePaint Asset Store *Deprecated: https://assetstore.unity.com/packages/tools/integration/mobile-paint-19803?aid=1101lGti Forum thread: http://forum.unity3d.com/threads/released-mobile-paint-with-multi-touch.262645/ — Latest Update: 26/10/2018, this is now free in asset store! Current features: List below is not updated, use Github Issues instead : https://github.com/unitycoder/UnityMobilePaint/issues – Optimized pixel drawing – […]
1
2012
XYZ Point Cloud Data Viewer (DX11)
Latest version is here >> Check new page here: http://unitycoder.com/blog/2014/03/19/asset-store-point-cloud-viewer-unity/ Quick test for reading XYZ point cloud data and displaying it using DX11 features. Current info: – 1 million points works fine (60fps with no update loop, 20fps with pos.x+1 for each point in a […]
10
2012
Fake Illumination Based on Object Texture Color
Testing how it would look, if objects “illuminate” light around them (using colored lights), based on texture colors.. Version#1 (info) – On startup, script goes thru target object vertices, triangles, normals, uv’s and creates colored lights – Currently using point lights, should be better with […]
21
2011
mVertexPainter v1.0 (demo + scene with source)
VertexPainter – basic version 1.0. You could probably do some cool effects with this: – Make it as an editor script (like this: http://blogs.unity3d.com/2011/03/24/ninjacamp-iii-vertex-awesome/ ) – Damage marks on collision – Transparency based on vertex colors – Character customization, paint player colors, car colors.. – […]
Recent posts
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
Recent Comments
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- ffmpeg stream raw video into Unity Texture2D on