Namespaces in C# by Unity Example | Beginner Unity Tutorial

Опубликовано: 13 Октябрь 2024
на канале: LlamAcademy
4,553
278

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.

👨‍💻 Unusually, since we are talking conceptually, not with a specific implementation

🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?sect...

📚 Resources:
⚫ Assembly Definitions Tutorial:    • Assembly Definitions, Explained | Uni...  
⚫ Microsoft C# Namespace Documentation: https://learn.microsoft.com/en-us/dot...
⚫ Namespaces Fundamentals: https://learn.microsoft.com/en-us/dot...
⚫ Naming Namespaces Guidelines: https://learn.microsoft.com/en-us/dot...
⚫ Namespaces Technical Documentation: https://learn.microsoft.com/en-us/dot...

🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
🌟 Patreon:   / llamacademy  
🌟 YouTube Member:    / @llamacademy   or click the Join button on any video
📚 Take my Unity ShaderGraph Course:
https://www.gamedev.tv/p/unity-shader...
👕 Get yourself some LlamAcademy merch: https://llamacademy.myspreadshop.com/
💸 Use my Affiliate Link for Humble Bundles https://humblebundleinc.sjv.io/9g4ak4
💸 Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! https://assetstore.unity.com/publishe... (affiliate)
💸 Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sal... (affiliate)

Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.

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