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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Visual Studio Unable to Attach to Unity

Discussion in 'Editor & General Support' started by AngusWP, Aug 15, 2020.

  1. AngusWP

    AngusWP

    Joined:
    Mar 16, 2020
    Posts:
    11
    I updated my Unity, and now when I launch a script through Unity and my visual studio opens, the "Attach to Unity" button disappears and is replaced with "Start", meaning every time I want to push my code to the Unity editor I have to restart visual studio. I was wondering if any of you have had this issue before and know how to fix it.
     
  2. Vryken

    Vryken

    Joined:
    Jan 23, 2018
    Posts:
    2,106
    Try first closing Visual Studio, then in Unity, navigate to:
    Edit > Preferences > External Tools

    Under where you have Visual Studio set as your editor, click on the "Regenerate project files" button.
     
  3. AngusWP

    AngusWP

    Joined:
    Mar 16, 2020
    Posts:
    11
    That fixed it! Thank you
     
    Vryken likes this.