Uploaded June 2025 | Updated September 2026, 12 hours ago
Hidden features of C# can dramatically improve your Unity development workflow, and in this video we explore a curated set of underused but powerful language capabilities—from default interface methods and `CallerMemberName` for intelligent logging, to custom numeric formatting and lazy iteration with `yield return`. We demonstrate how implicit and explicit operators add type safety to game-specific structs like `Health`, and how LINQ's deferred execution affects performance and logging behavior. You’ll also see how to slice arrays using index and range operators, and how to build concise, readable, and efficient code without compromising control. Whether you're a Unity developer looking to sharpen your C# skills or just curious about features hiding in plain sight, this walkthrough offers practical examples you can drop directly into your projects.
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 Intelligent Logging
2:43 Default Interface Methods
4:56 Custom Numeric Format Strings
6:05 Deferred Enumeration
8:47 Implicit and Explicit Operators
11:30 Array Slicing
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)_
Fantasy Props Megakit - quaternius.itch.io/fantasy-props-megakit
DarkMode for Unity Editor - assetstore.unity.com/packages/tools/gui/darkmode-for-unity-editor-on-windows-281842?aid=1101lw3sv
Beautify - assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/beautify-3-advanced-post-processing-233073?aid=1101lw3sv
Umbra Soft Shadows - assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/umbra-soft-shadows-better-directional-contact-shadows-for-urp-282485?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
DevTasks - Offline Project Manager - assetstore.unity.com/packages/tools/utilities/devtasks-offline-project-manager-307257?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
Clipper PRO: assetstore.unity.com/packages/tools/utilities/clipper-pro-the-ultimate-clipboard-277112?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
Hidden features of C# can dramatically improve your Unity development workflow, and in this video we explore a curated set of underused but powerful language capabilities—from default interface methods and `CallerMemberName` for intelligent logging, to custom numeric formatting and lazy iteration with `yield return`. We demonstrate how implicit and explicit operators add type safety to game-specific structs like `Health`, and how LINQ's deferred execution affects performance and logging behavior. You’ll also see how to slice arrays using index and range operators, and how to build concise, readable, and efficient code without compromising control. Whether you're a Unity developer looking to sharpen your C# skills or just curious about features hiding in plain sight, this walkthrough offers practical examples you can drop directly into your projects.
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 Intelligent Logging
2:43 Default Interface Methods
4:56 Custom Numeric Format Strings
6:05 Deferred Enumeration
8:47 Implicit and Explicit Operators
11:30 Array Slicing
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)_
Fantasy Props Megakit - quaternius.itch.io/fantasy-props-megakit
DarkMode for Unity Editor - assetstore.unity.com/packages/tools/gui/darkmode-for-unity-editor-on-windows-281842?aid=1101lw3sv
Beautify - assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/beautify-3-advanced-post-processing-233073?aid=1101lw3sv
Umbra Soft Shadows - assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/umbra-soft-shadows-better-directional-contact-shadows-for-urp-282485?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
DevTasks - Offline Project Manager - assetstore.unity.com/packages/tools/utilities/devtasks-offline-project-manager-307257?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
Clipper PRO: assetstore.unity.com/packages/tools/utilities/clipper-pro-the-ultimate-clipboard-277112?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

![Build Custom Unity MCP Tools for Coding Agents
Learn how to supercharge AI coding assistants like Cursor by teaching them your exact Unity editor workflows. In this step-by-step tutorial we start with Unity’s official MCP bridge, and create a full discoverable [McpTool] with parameters, validation, and structured responses. We also compare the official approach with Unity MCP Pro. Perfect for technical artists, Unity developers, and anyone who wants their AI to actually understand and execute project-specific tasks instead of just writing code.
Use AI Assistant v2.6.0-pre.1 if you dont want a subscription, otherwise sign up for FREE Unity AI Trial: https://unity.com/features/ai
Docs: https://docs.unity3d.com/Packages/com.unity.ai.assistant@2.13/manual/integration/unity-mcp-get-started.html
MCP for Unity Pro - https://y1uda.itch.io/unity-mcp-pro
Want to support me? 😀
Buy me a coffee! https://ko-fi.com/adammyhre
🔔 Subscribe for more Unity Tutorials https://youtube.com/@git-amend
Discord: https://discord.gg/FDRZGQBBUC
#unity3d #gamedev #indiedev
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 Install AI Assistant
2:21 Tool Basics
6:56 Params and Response
*Source code:* https://gist.github.com/adammyhre/df4a1d98b131b1ef4df30a787a532e40
More Useful Code:
https://github.com/adammyhre?tab=repositories
Unity Utility Library: https://github.com/adammyhre/Unity-Utils
Lock Inspector Hotkey: https://gist.github.com/adammyhre/4754f731a93bf1cab0d1385ccfa23642
*Other Recommended Tools* _(Affiliate Links)_
Phantom Navigator - https://assetstore.unity.com/packages/tools/utilities/phantom-navigator-371346?aid=1101lw3sv
Ultimate Preview - https://assetstore.unity.com/packages/tools/utilities/ultimate-preview-bundle-340976?aid=1101lw3sv
Mouse Shortcuts - https://assetstore.unity.com/packages/tools/utilities/mouse-button-shortcuts-and-selection-history-228013?aid=1101lw3sv
Init(args) - https://assetstore.unity.com/packages/tools/utilities/init-args-200530?aid=1101lw3sv
Wingman - https://assetstore.unity.com/packages/tools/utilities/wingman-your-inspector-s-best-friend-303181?aid=1101lw3sv
Favorites Window - https://assetstore.unity.com/packages/tools/utilities/favorites-window-123487?aid=1101lw3sv
Scene Notes - https://assetstore.unity.com/publishers/87819?aid=1101lw3sv
Beautify - https://assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/beautify-3-advanced-post-processing-233073?aid=1101lw3sv
Odin - https://assetstore.unity.com/packages/tools/utilities/odin-inspector-and-serializer-89041?aid=1101lw3sv?aid=1101lw3sv
Odin Validator - https://assetstore.unity.com/packages/tools/utilities/odin-validator-227861?aid=1101lw3sv
Hot Reload: https://assetstore.unity.com/packages/tools/utilities/hot-reload-edit-code-without-compiling-254358?aid=1101lw3sv
Better Hierarchy: https://assetstore.unity.com/packages/tools/utilities/better-hierarchy-272963?aid=1101lw3sv
Better Transform: https://assetstore.unity.com/packages/tools/utilities/better-transform-size-notes-global-local-workspace-parent-child 321300?aid=1101lw3sv
Better Mesh Filter: https://assetstore.unity.com/packages/tools/utilities/better-mesh-mesh-preview-full-insight-at-a-glance-321364?aid=1101lw3sv
Editor Console Pro: https://assetstore.unity.com/packages/tools/utilities/editor-console-pro-11889?aid=1101lw3sv
Any Object Finder: https://assetstore.unity.com/packages/tools/utilities/any-object-finder-286455?aid=1101lw3sv
Kybernetic Tools: https://assetstore.unity.com/publishers/16747?aid=1101lw3sv
Sisus Tools: https://assetstore.unity.com/publishers/41398?aid=1101lw3sv
Prime Tween - https://assetstore.unity.com/packages/tools/animation/primetween-high-performance-animations-and-sequences-252960?aid=1101lw3s
Rabbit Logger - https://assetstore.unity.com/packages/tools/utilities/rabbit-logger-305396?aid=1101lw3s
*Follow me!*
https://linktr.ee/gitamend Build Custom Unity MCP Tools for Coding Agents](https://i.ytimg.com/vi/VPjo-M6mPkE/mqdefault.jpg)







![Preparing for CoreCLR: Unity’s New Lifecycle Management API
Unity 6.5 introduces a powerful new Lifecycle Management API that finally makes fast iteration with Domain Reload disabled both safe and practical. In this deep dive, we explore all the major new attributes including [AutoStaticsCleanup], [OnEnteringPlayMode], [OnExitingPlayMode], [OnCodeInitializing], [OnCodeUnloading], and more. Learn how these tools solve long-standing issues with static state leaks, event handler accumulation, and tricky initialization timing — while preparing your project for the upcoming CoreCLR transition in Unity 6.8. Whether youre on the 6.5 beta or using the community backport, this video will show you practical examples, migration strategies, and when to use each attribute.
Path to CoreCLR Upgrade Guide: https://discussions.unity.com/t/path-to-coreclr-2026-upgrade-guide/1714279
AutoStaticsCleanup Backport: https://github.com/alexisstrat/unity-auto-statics-cleanup-generator
Want to support me? 😀
Buy me a coffee! https://ko-fi.com/adammyhre
🔔 Subscribe for more Unity Tutorials https://youtube.com/@git-amend
Discord: https://discord.gg/FDRZGQBBUC
#unity3d #gamedev #indiedev
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 The Problem with Statics
3:40 Auto Statics Cleanup
5:42 Play Mode Lifecycle Hooks
6:42 Code Reload Lifecycle
*Other Recommended Tools* _(Affiliate Links)_
Phantom Navigator - https://assetstore.unity.com/packages/tools/utilities/phantom-navigator-371346?aid=1101lw3sv
Ultimate Preview - https://assetstore.unity.com/packages/tools/utilities/ultimate-preview-bundle-340976?aid=1101lw3sv
Mouse Shortcuts - https://assetstore.unity.com/packages/tools/utilities/mouse-button-shortcuts-and-selection-history-228013?aid=1101lw3sv
Init(args) - https://assetstore.unity.com/packages/tools/utilities/init-args-200530?aid=1101lw3sv
Wingman - https://assetstore.unity.com/packages/tools/utilities/wingman-your-inspector-s-best-friend-303181?aid=1101lw3sv
Favorites Window - https://assetstore.unity.com/packages/tools/utilities/favorites-window-123487?aid=1101lw3sv
Scene Notes - https://assetstore.unity.com/publishers/87819?aid=1101lw3sv
Beautify - https://assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/beautify-3-advanced-post-processing-233073?aid=1101lw3sv
Odin - https://assetstore.unity.com/packages/tools/utilities/odin-inspector-and-serializer-89041?aid=1101lw3sv?aid=1101lw3sv
Odin Validator - https://assetstore.unity.com/packages/tools/utilities/odin-validator-227861?aid=1101lw3sv
Hot Reload: https://assetstore.unity.com/packages/tools/utilities/hot-reload-edit-code-without-compiling-254358?aid=1101lw3sv
Better Hierarchy: https://assetstore.unity.com/packages/tools/utilities/better-hierarchy-272963?aid=1101lw3sv
Better Transform: https://assetstore.unity.com/packages/tools/utilities/better-transform-size-notes-global-local-workspace-parent-child 321300?aid=1101lw3sv
Better Mesh Filter: https://assetstore.unity.com/packages/tools/utilities/better-mesh-mesh-preview-full-insight-at-a-glance-321364?aid=1101lw3sv
Editor Console Pro: https://assetstore.unity.com/packages/tools/utilities/editor-console-pro-11889?aid=1101lw3sv
Any Object Finder: https://assetstore.unity.com/packages/tools/utilities/any-object-finder-286455?aid=1101lw3sv
Kybernetic Tools: https://assetstore.unity.com/publishers/16747?aid=1101lw3sv
Sisus Tools: https://assetstore.unity.com/publishers/41398?aid=1101lw3sv
Prime Tween - https://assetstore.unity.com/packages/tools/animation/primetween-high-performance-animations-and-sequences-252960?aid=1101lw3s
Rabbit Logger - https://assetstore.unity.com/packages/tools/utilities/rabbit-logger-305396?aid=1101lw3s
More Useful Code:
https://github.com/adammyhre?tab=repositories
Unity Utility Library: https://github.com/adammyhre/Unity-Utils
Lock Inspector Hotkey: https://gist.github.com/adammyhre/4754f731a93bf1cab0d1385ccfa23642
*Follow me!*
https://linktr.ee/gitamend Preparing for CoreCLR: Unity’s New Lifecycle Management API](https://i.ytimg.com/vi/X6ClELFNqr4/mqdefault.jpg)
