Uploaded March 2025 | Updated September 2026, 9 hours ago
Improve performance in Unity by leveraging the power of Roslyn for compiling Source and Incremental generators, and building custom tools to analyze and enhance performance. This video introduces Roslyn to Unity developers, focusing on the essential setup and foundational concepts for those who are new to it. Roslyn can be used for advanced use cases such as dependency injection, binding systems, and procedural code generation, and this video lays the groundwork necessary to build these more complex tools. By the end, you'll have the core knowledge to start integrating Roslyn into your Unity 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
Rider Early Access Program 2025.1 - blog.jetbrains.com/dotnet/2025/02/24/rider-2025-1-eap-5
Unity Docs - docs.unity3d.com/6000.0/Documentation/Manual/create-source-generator.html
Roslyn Docs - github.com/dotnet/roslyn/tree/main/docs
Roslyn Usecases: assetstore.unity.com/publishers/32045?aid=1101lw3sv
Turbo Makes Games Introduction to Roslyn Source Generators in Unity - youtube.com/watch?v=UiYQR8eQfgU
JetBrains Let’s Build an Incremental Source Generator With Roslyn - youtube.com/watch?v=azJm_Y2nbAI
#unity3d #gamedev #indiedev
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 Getting Started with Roslyn
3:50 Source Generator
6:50 Importing Your DLL
11:23 Incremental Generator
13:52 Static Analysis
*Source code:* gist.github.com/adammyhre/8bbaec4ed012579f7e31a758681b9ae8
More Useful Code:
github.com/adammyhre?tab=repositories
Unity Utility Library: github.com/adammyhre/Unity-Utils
Lock Inspector Hotkey: gist.github.com/adammyhre/4754f731a93bf1cab0d1385ccfa23642
Assets Shown In This Video (Affiliate Links)
Crash Konijn Source Generation: assetstore.unity.com/publishers/32045?aid=1101lw3sv
Titan Rock Generator - assetstore.unity.com/packages/tools/modeling/titan-rock-generator-procedural-223628?aid=1101lw3sv
Dungeon Mason Tiny Hero Duo: (FREE): assetstore.unity.com/packages/3d/characters/humanoids/rpg-tiny-hero-duo-pbr-polyart-225148?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
Shader Control - assetstore.unity.com/packages/vfx/shaders/shader-control-74817?aid=1101lw3sv
Wingman - assetstore.unity.com/packages/tools/utilities/wingman-your-inspector-s-best-friend-303181?aid=1101lw3sv
Logwin - assetstore.unity.com/packages/tools/utilities/logwin-log-debug-values-tracker-149558?aid=1101lw3sv
Odin - assetstore.unity.com/packages/tools/utilities/odin-inspector-and-serializer-89041?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
Hierarchy Icons: 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
Clipper PRO: assetstore.unity.com/packages/tools/utilities/clipper-pro-the-ultimate-clipboard-277112?aid=1101lw3sv
*Follow me!*
https://linktr.ee/gitamend
Improve performance in Unity by leveraging the power of Roslyn for compiling Source and Incremental generators, and building custom tools to analyze and enhance performance. This video introduces Roslyn to Unity developers, focusing on the essential setup and foundational concepts for those who are new to it. Roslyn can be used for advanced use cases such as dependency injection, binding systems, and procedural code generation, and this video lays the groundwork necessary to build these more complex tools. By the end, you'll have the core knowledge to start integrating Roslyn into your Unity 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
Rider Early Access Program 2025.1 - blog.jetbrains.com/dotnet/2025/02/24/rider-2025-1-eap-5
Unity Docs - docs.unity3d.com/6000.0/Documentation/Manual/create-source-generator.html
Roslyn Docs - github.com/dotnet/roslyn/tree/main/docs
Roslyn Usecases: assetstore.unity.com/publishers/32045?aid=1101lw3sv
Turbo Makes Games Introduction to Roslyn Source Generators in Unity - youtube.com/watch?v=UiYQR8eQfgU
JetBrains Let’s Build an Incremental Source Generator With Roslyn - youtube.com/watch?v=azJm_Y2nbAI
#unity3d #gamedev #indiedev
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 Getting Started with Roslyn
3:50 Source Generator
6:50 Importing Your DLL
11:23 Incremental Generator
13:52 Static Analysis
*Source code:* gist.github.com/adammyhre/8bbaec4ed012579f7e31a758681b9ae8
More Useful Code:
github.com/adammyhre?tab=repositories
Unity Utility Library: github.com/adammyhre/Unity-Utils
Lock Inspector Hotkey: gist.github.com/adammyhre/4754f731a93bf1cab0d1385ccfa23642
Assets Shown In This Video (Affiliate Links)
Crash Konijn Source Generation: assetstore.unity.com/publishers/32045?aid=1101lw3sv
Titan Rock Generator - assetstore.unity.com/packages/tools/modeling/titan-rock-generator-procedural-223628?aid=1101lw3sv
Dungeon Mason Tiny Hero Duo: (FREE): assetstore.unity.com/packages/3d/characters/humanoids/rpg-tiny-hero-duo-pbr-polyart-225148?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
Shader Control - assetstore.unity.com/packages/vfx/shaders/shader-control-74817?aid=1101lw3sv
Wingman - assetstore.unity.com/packages/tools/utilities/wingman-your-inspector-s-best-friend-303181?aid=1101lw3sv
Logwin - assetstore.unity.com/packages/tools/utilities/logwin-log-debug-values-tracker-149558?aid=1101lw3sv
Odin - assetstore.unity.com/packages/tools/utilities/odin-inspector-and-serializer-89041?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
Hierarchy Icons: 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
Clipper PRO: assetstore.unity.com/packages/tools/utilities/clipper-pro-the-ultimate-clipboard-277112?aid=1101lw3sv
*Follow me!*
https://linktr.ee/gitamend










