Keep your code clean and organized! Define a default namespace in your Unity project and watch your scripts magically fall into place. #UnityDev #UnityTips #Unity #Unity3D #IndieDev
https://i.imgur.com/t1UNmd7.png
@shadow_grove interesting, what are the effects of this?
@curiousdynamics It groups related classes and prevents naming conflicts. In combination with Assembly definitions you can also benifit from code seperation.
You can read more about here:
https://docs.unity3d.com/Manual/Namespaces.html
https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html
@shadow_grove thanks for the links! i've encountered namespaces before but only defined in scripts (like in the first link you sent). what does setting a "root namespace" in the settings do, is it like a default namespace for any new script added?
@curiousdynamics Yes it add the given "root namespace" to every new created script. Like the namespace field in the Assembly definitions
@shadow_grove gotcha ok cool, thanks for sharing useful tips!
@curiousdynamics You're welcome :)