mastodon.gamedev.place is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server focused on game development and related topics.

Server stats:

5.1K
active users

Shadow Grove

Keep your code clean and organized! Define a default namespace in your Unity project and watch your scripts magically fall into place. 🧹
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:
docs.unity3d.com/Manual/Namesp
docs.unity3d.com/Manual/Script

docs.unity3d.comUnity - Manual: Namespaces

@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!