简体   繁体   中英

Unity, C#, Visual studio 2019, folder structure

I am new to C# and also new to using unity and visual studio, the problem im having right now is that, when i double click my C# script it doesent show the entire folder structure in visual studio 2019. I tried opening the my project through the Assets -> Open C# Project method but this did not work either. I'm not really sure what to do, 在此处输入图像描述 if anyone has a method that can work, that will be greatyly appriciated.

welcome to the Unity world. If I understand your problem, Unity is only opening one file instead of the whole solution explorer.

I had the same issue after an update from Unity (2019 > 2020).

One of the most common issues for this is your unity preferences. You have to configure this manually. You can find the option in

edit > Preferences > External Tools > External Script Editor.

Set your external script editor to Visual studio. ( https://answers.unity.com/questions/513720/unity-not-opening-solution-in-visual-studio-only-f.html )

This problem could also be caused by a missing package. You can enable this package in Unity via

Window > Package Manager

and install the Visual Studio Code Editor or Visual Studio Editor ( https://answers.unity.com/questions/1632856/visual-studio-2019-wont-open-when-double-clicking.html )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM