Ambigous Vectors somehow?

My code will be working fine one moment, then seemingly out of nowhere, it will decide that all of my Vectors, which were functioning just fine mere seconds ago, are somehow ambigous now, and refuse to go back to how they worked before.

I got to move my ship around and everything. Everything went smooth, until I added the “new Vector2” at the Viewport bit. How do I fix it?

At the top of the script, you should find a line saying using System.Numerics;. Delete it.

Sometimes the IDE is too clever for it’s own good. It tries to help, but then it doesn’t. There is a Vector2 in both UnityEngine and System.Numerics. The IDE tries to help by adding the using at the top, but it’s not the correct one, and then you have both and the compiler cannot know which one you meant. Just remove the System.Numerics one because that’s not the one you want.

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

Privacy & Terms