Why do we need to state the individual namespaces we want to use in our scripts? Why can’t they all just be built into each script?
What I’m referring to are things like these:
using UnityEngine;
using System.Collections;
etc.
etc.
Why do we need to state the individual namespaces we want to use in our scripts? Why can’t they all just be built into each script?
What I’m referring to are things like these:
using UnityEngine;
using System.Collections;
etc.
etc.
So for example:
using UnityEngine;
using System;
public class Example : MonoBehaviour
{
public Object something1; // Not allowed, which object do you mean?
public UnityEngine.Object something2; // allowed
public System.Object something3; // allowed
}
And I probably forgot some reasons
See also : MSDN