Jul20
A Note on Partial Classes and Unity
Recently I have discovered partial classes in C# for the use in Unity. They are a good way to split classes into a Library-part, which never changes from project to project, and an custom part which can be custom for each project.
Unity does handle this effortlessly as long as you remember to keep code file names unique.
For my purposes I use a simple .-syntax like this:
LayerManager.cs // this is the base class included in my collection of extensions
LayerManager.Custom.cs // this is the custom extension which adds game-specific functionality to the LayerManager class




