I have two namespaces:
System.Numerics and UnityEngine
Both have the type Vector3
.
So now when ever i want to use it i have to declare which namespace before it. Like this:
protected struct CVN
{
public Complex h;
public UnityEngine.Vector2 d;
public UnityEngine.Vector3 n;
}
Is there any way to define that i only want Vector3
from one namespace so i don't have to always type NameSpaceHere.Vector3
every single time ?
Or am i stuck with the tedious nature of stating the namespace every time. Especially since i only need the Complex
type from Numerics its quite annoying.
Numerics.Complex
andusing UnityEngine;
? – Rafalon Feb 22 at 7:33vector2
andvector3
fromUnityEngine
namespace, you need to declareusing Vector2 = UnityEngine.Verctor2;
andusing Vector3 = UnityEngine.Vector3
at the top of the class file. – Chetan Ranpariya Feb 22 at 7:37