Namespaces in C# by Unity Example | Beginner Unity Tutorial
VloĆŸit
- Äas pĆidĂĄn 17. 07. 2024
- In this tutorial you'll learn about what namespaces are, how they are helpful, and when to use them!
Namespaces are a fundamental concept in C# that allow us to organize our code into logical segments. All C# classes are within a namespace either explicitly or inherently. If you don't explicitly define one, the class goes into the "global" namespace.
đž Ongoing sales đž
â« Check out the latest Humble Bundles www.humblebundle.com/software...
â« Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! assetstore.unity.com/publishe...
â« Save up to 50% on NEW Assets: assetstore.unity.com/?new_sal...
đšâđ» Unusually, since we are talking conceptually, not with a specific implementation
đ Resources:
â« Assembly Definitions Tutorial: âą Assembly Definitions, ...
â« Microsoft C# Namespace Documentation: learn.microsoft.com/en-us/dot...
â« Namespaces Fundamentals: learn.microsoft.com/en-us/dot...
â« Naming Namespaces Guidelines: learn.microsoft.com/en-us/dot...
â« Namespaces Technical Documentation: learn.microsoft.com/en-us/dot...
†Believe in LlamAcademy's mission and have received value from the videos? Become a Patreon Supporter or CZcams Member:
â« Patreon: / llamacademy
â« CZcams Member: / @llamacademy or click the Join button on any video
đ± Let's stay connected
CZcams: / llamacademy
Patreon: / llamacademy
Facebook: / llamacademyofficial
Twitter: / thellamacademy
TikTok: / llamacademy
Instagram: / llamacademy
----
Most tutorials come from knowledge gained making survival.llama.software Llama Survival - a top-down zombie survival shooter for Android and iOS.
I also have some Unity Assets: assetstore.unity.com/publishe...
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
#unitytutorial #tutorialtuesday #gamedev #tutorial #unity #llamacademy #gamedevelopment
Chapters:
00:00 What are Namespaces?
00:54 Do You Need Namespaces?
01:29 Practical Example
02:45 "Sub-namespaces"
04:06 Next Steps, Closing Thoughts, & Support LlamAcademy
very clear! ty
great video. I like that you explain why it's needed and not just what it is.
guud stuff man, lets continue with assembly definitions!!! :))
Next week đ
â@@LlamAcademy Oh goodness yes! Learning more about assembly definitions has improved my ability to work in a unity codebase without it having to recompile all my code into Assembly-CSharp. For some reason this became a bit more important when I upgrade from unity 2020.x to 2021+
I pray to the Unity gods daily for them to update to allow File Scoped Namespaces!!! I know it shouldn't bother me that much, but it does.
I heard Unity is working on more recent C# version support. Hopefully in Unity 2023 we get C#11 đ€