Search Unity

Resolved Vector3 is acting like a ghost in Visual Studio

Discussion in 'Scripting' started by LeLoicLe, May 28, 2020.

  1. LeLoicLe

    LeLoicLe

    Joined:
    May 27, 2020
    Posts:
    25
    HI
    When i am scripting, and when i would like to use Vector3 Class, Visual Studio just don't see it, the code seems to work, but Intelisense just dont know that class, it shows me no underclasses. Whatever the way i am typing it, Visual Studio offers me nothing, cant see anything about it...
    Thank you for your help. :)
     
  2. Giustitia

    Giustitia

    Joined:
    Oct 26, 2015
    Posts:
    113
    Check you don't have any compiler error in ANY script inside your project. Also, try restarting Unity and Visual Studio :D
     
  3. LeLoicLe

    LeLoicLe

    Joined:
    May 27, 2020
    Posts:
    25
    HI, thank you for your anwer. :)
    Here is the thing, I tried whith a complete new empty project with a new script, and nothing.
    The strangest fact is that ohters scripts that contains Vector3 work, no problems.
    Just Visual does not see it as a class, it does not see it at all.
    And it is very confusing because it is very usefull that intellisense offers underclasses and variable.
    Thank you. :)
     
  4. LeLoicLe

    LeLoicLe

    Joined:
    May 27, 2020
    Posts:
    25
    An image to show that:
     

    Attached Files:

  5. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,911
  6. LeLoicLe

    LeLoicLe

    Joined:
    May 27, 2020
    Posts:
    25