Namespaces in C# by Unity Example | Beginner Unity Tutorial

SdĂ­let
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

Komentáƙe • 7

  • @bloodiedhand1230
    @bloodiedhand1230 Pƙed rokem +1

    very clear! ty

  • @SweepAndZone
    @SweepAndZone Pƙed 5 měsĂ­ci +1

    great video. I like that you explain why it's needed and not just what it is.

  • @JayadevHaddadi
    @JayadevHaddadi Pƙed rokem +6

    guud stuff man, lets continue with assembly definitions!!! :))

    • @LlamAcademy
      @LlamAcademy  Pƙed rokem +3

      Next week 😉

    • @andrewallbright
      @andrewallbright Pƙed rokem

      ​@@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+

  • @Vastlee
    @Vastlee Pƙed rokem +3

    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.

    • @LlamAcademy
      @LlamAcademy  Pƙed rokem +1

      I heard Unity is working on more recent C# version support. Hopefully in Unity 2023 we get C#11 đŸ€ž