This Coding Trick Feels Like LEGOs! @git-amend
This Coding Trick Feels Like LEGOs!  @git-amend
Uploaded August 2025 | Updated September 2026, 42 minutes ago
Combinator pattern in C#: break logic into small, reusable pieces and combine them with AND, OR, and NOT using a fluent builder. It’s a clean, modular way to compose small functions into one higher order function — like snapping LEGO bricks together — that’s easy to extend and reuse in different contexts.

Want to support me? 😀
Buy me a coffee! ko-fi.com/adammyhre

🔔 Subscribe for more Unity Tutorials youtube.com/@git-amend

Discord: discord.gg/FDRZGQBBUC

#unity3d #gamedev #indiedev

▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬

0:00 Context
1:58 Leaves
3:22 Combinators
4:27 Builder
6:10 Demo

*Source code:* gist.github.com/adammyhre/022047fbf4b6a925434957863134b575

More Useful Code:
github.com/adammyhre?tab=repositories
Unity Utility Library: github.com/adammyhre/Unity-Utils
Lock Inspector Hotkey: gist.github.com/adammyhre/4754f731a93bf1cab0d1385ccfa23642

*Other Recommended Tools* _(Affiliate Links)_
Scene Notes - assetstore.unity.com/publishers/87819?aid=1101lw3sv
Beautify - assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/beautify-3-advanced-post-processing-233073?aid=1101lw3sv
Wingman - assetstore.unity.com/packages/tools/utilities/wingman-your-inspector-s-best-friend-303181?aid=1101lw3sv
Favorites Window - assetstore.unity.com/packages/tools/utilities/favorites-window-123487?aid=1101lw3sv
Logwin - assetstore.unity.com/packages/tools/utilities/logwin-log-debug-values-tracker-149558?aid=1101lw3sv
TimeScale Toolbar - assetstore.unity.com/packages/tools/utilities/timescale-toolbar-291564?aid=1101lw3sv
Odin - assetstore.unity.com/packages/tools/utilities/odin-inspector-and-serializer-89041?aid=1101lw3sv?aid=1101lw3sv
Odin Validator - assetstore.unity.com/packages/tools/utilities/odin-validator-227861?aid=1101lw3sv
Hot Reload: assetstore.unity.com/packages/tools/utilities/hot-reload-edit-code-without-compiling-254358?aid=1101lw3sv
Better Hierarchy: assetstore.unity.com/packages/tools/utilities/better-hierarchy-272963?aid=1101lw3sv
Better Transform: assetstore.unity.com/packages/tools/utilities/better-transform-size-notes-global-local-workspace-child-parent--276554?aid=1101lw3sv
Better Mesh Filter: assetstore.unity.com/packages/tools/utilities/better-mesh-filter-266489?aid=1101lw3sv
Editor Console Pro: assetstore.unity.com/packages/tools/utilities/editor-console-pro-11889?aid=1101lw3sv
Any Object Finder: assetstore.unity.com/packages/tools/utilities/any-object-finder-286455?aid=1101lw3sv
Kybernetic Tools: assetstore.unity.com/publishers/16747?aid=1101lw3sv
Sisus Tools: assetstore.unity.com/publishers/41398?aid=1101lw3sv
Prime Tween - assetstore.unity.com/packages/tools/animation/primetween-high-performance-animations-and-sequences-2529607?aid=1101lw3s
Rabbit Logger - assetstore.unity.com/packages/tools/utilities/rabbit-logger-305396?aid=1101lw3s

*Follow me!*
https://linktr.ee/gitamend
This Coding Trick Feels Like LEGOs!Optimal Goal-First Pathfinding - D* Lite3D Platformer in Unity - Jumping Onto Moving Platforms (Part 2)Flyweight Factory with Unity Object PoolingMemory Arenas in Unity: Heap Allocation Without the GCJetBrains AI Assistant Just Got a Lot More Useful (and FREE)How I Simplify Unity Development with the Façade PatternThe Architecture Behind Roombattles DLC Content LoaderMediator Pattern - Reduce Chaotic DependenciesYour Factory Pattern Might Be Wrong and You Dont Even Know ItMatch 3 Candy Crush Game in Unity (Part 2)Memento: Capture Game State Snapshots in Unity
git-amend |

This Coding Trick Feels Like LEGOs!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER