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 Unity code not working Visual studio and Unity

Discussion in 'Scripting' started by Bovata, Jan 8, 2021.

  1. Bovata

    Bovata

    Joined:
    Jan 7, 2021
    Posts:
    5
    My unity code (that i've followed from a tutorial) doesn't work.
    Like Vector3 and other code that is only for Unity, visual studio doesn't recognize and just takes it as text, not as a code or program.
    If anyone knows how to hhelp, please help me out, as I really want to get into programming games.
    (i've installed Unity game development workload on my visual studio, Visual studio version 16.8.3, Unity 2019.)
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,336
    How to report your problem productively in the Unity3D forums:

    http://plbm.com/?p=220
     
  3. Bovata

    Bovata

    Joined:
    Jan 7, 2021
    Posts:
    5
    Link wont load
     
  4. Bovata

    Bovata

    Joined:
    Jan 7, 2021
    Posts:
    5
    I have searched for 3 hours but couldnt find an answer. Thats why i posted it
     
  5. seejayjames

    seejayjames

    Joined:
    Jan 28, 2013
    Posts:
    685
    Does it still do it if you create a new C# script in Unity and then open it in VS?
    Also make sure VS has the Unity-specific package installed (it should if you installed Unity the standard way).
     
  6. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,697
  7. Bovata

    Bovata

    Joined:
    Jan 7, 2021
    Posts:
    5
    Thank you so much! It worked! I can finally start learning.