Browsing articles in "Unity3d"
Nov
30
2018

Sprite Sheet Flip Book Shader

Converted this old animated sprite sheet script into shader, its useful for animating sprites from sprite sheet. (when Animator is too heavy for simple sprite animation) Could be extended to have billboard option. Shader source: *Updated: 30/11/18 to fix index wrapping and UV direction https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Shaders/2D/Sprites/FlipBook.shader […]

Nov
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 […]

Oct
31
2018

Find Nearby Objects using CullingGroup

Saw this tip at #UniteKL18, fast way to get nearby objects using CullingGroup! (main image with 5000 gameobjects, searching objects within 3m radius) example source code: https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Scripts/Docs/UnityEngine/CullingGroupExample.cs my example project: https://github.com/unitycoder/GetNearestObjectsWithCullingGroup Some notes on that: – You need to have MainCamera in the scene (as […]

Oct
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 […]

Oct
3
2018

Convolution Filter Test

Quick test for simple convolution filter with unity Texture2D (using c# script, not shader) Source project: https://github.com/unitycoder/ConvolutionFilter  

Sep
23
2018

Browser Plugin: Stay in Old Asset Store

Small snippet to use with GreaseMonkey-plugin, will stop old & short url asset store links from re-directing into that horrible new asset store! *New v2: Now automatically redirects from new horrible store to good old store AND keeps the asset page! This file contains bidirectional […]

Aug
7
2018

Faster Debug.Log

Debug.Log() slows down your editor or even hangs if it happens to run inside some long loop, but you can make it faster by disabling stacktrace from Debug.Log()! (see image above) Tested for-loop with 100000 iterations in editor (Unity 2018.1.6f1) – 25000ms with stacktrace enabled […]

May
26
2018

Fire Effect Using CustomRenderTexture

Converted this fire effect (by The Coding Train) into unity customrendertexture + shader. Added fire gradient color (by moving the fire calculation into alpha channel). Unity Project Sources https://github.com/unitycoder/FireEffect References CustomRenderTexture (was added to unity in 2017.1) https://docs.unity3d.com/Manual/CustomRenderTextures.html Keijiros example project (reaction-diffusion) https://github.com/keijiro/RDSystem Fire Effect […]

May
18
2018

Octree

Modified this quadtree into octree Unity Project https://github.com/unitycoder/Octree *enable Gizmos in gameview to see debug lines

May
18
2018

Quadtree

Converted this javascript quadtree (by The Coding Train) to Unity using texture2d *not complete with all the features yet though, but can add points by clicking texture with mouse. Unity Project https://github.com/unitycoder/UnityQuadtreeInTexture   Original source https://www.youtube.com/watch?v=OJxEcs0w_kE  

Pages:«1...78910111213...49»

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.