r/unity_tutorials • • Mar 28 '23

Video Namespaces in C# by Unity Example | Beginner Unity Tutorial

73 Upvotes

1 comment sorted by

2

u/LlamAcademyOfficial Mar 28 '23

Full Tutorial on YouTube

Hey all 👋! Happy #TutorialTuesday!

This week we're hitting some fundamentals that, as a long time developer, I take for granted! The concept of a namespace is to group code together, either logically or by domain. If you've written any code in Unity, you've used a namespace before, because at the top of your script you have using UnityEngine; - UnityEngine is the top level namespace that groups all the Unity-specific code like MonoBehaviours!

In this beginner tutorial we explore what are namespaces, what they are, and how to use them with some examples in a Unity context!

👨‍💻 Unusually, there's no repository for this tutorial since we're really just talking at a concept overview and there's no actual implementation.