Namespace question

I also get the feeling that using namespaces will give us as developers the ability to tell VS Code or what ever interrupter were using the ability to resolve name conflicts with any other asset pack scripts.

as example
the a Random function
if I wrote my own random function it may confuse the complier so putting ( namespace. ) makes it concise for the complier to use the correct function.

AM I understanding this correctly?

Its kind of like building our own (parent) container for our scripts right?.
thanks

1 Like

This is exactly right.

In the case of your Random function, this helps differentiate between

yournamespace.Random;
System.Random;
UnityEngine.Random;

tks for the confirm Brian

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms