Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question CS014 Error

Discussion in 'Scripting' started by UsernameNotExist, Aug 25, 2020.

  1. UsernameNotExist

    UsernameNotExist

    Joined:
    Apr 19, 2020
    Posts:
    3
    cool
     
    Last edited: Jun 8, 2021
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,336
    You must be "using" both System.Numerics and UnityEngine... you can clarify by explicitly using the full path:

    UnityEngine.Vector3 in place of just Vector3
     
  3. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,697
    Alternatively, unless you consciously put it there for a reason (rare) just delete this line:
    Code (CSharp):
    1. using System.Numerics;
    A lot of times people add this (and similar) unwittingly to their code because their IDE automatically suggests it and they're not paying attention or don't understand what is being suggested.
     
  4. UsernameNotExist

    UsernameNotExist

    Joined:
    Apr 19, 2020
    Posts:
    3
    Huh when I made the Script it automatically put that their
     
  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,336
    Lucky guy! I had to pay extra!

    Shh or else everybody will want one.
     
    Joe-Censored likes this.