当前位置:网站首页>Unity vs -- the default debugging in VS is to start rather than attach to unity debugging
Unity vs -- the default debugging in VS is to start rather than attach to unity debugging
2022-07-25 20:38:00 【ۓ Mingzhe ڪ】
Statement : This article is a personal note , For study and research, use non-commercial , The content is obtained from personal research and comprehensive arrangement , If there is a violation , Please contact the , Violations must be corrected .
List of articles
development environment
Unity 2018.2.3
Visual Studio 2019( hereinafter referred to as VS)
One 、 Problem description
adopt Unity After opening the script visualstudio The debug button is displayed as start rather than attached to Unity. As shown in Figure 1 :
Figure 1 ( Error effect )
Figure 2 ( The right effect )
Two 、 Causes of problems and solutions
The cause of the problem :
The reason a —— The corresponding tool may not be installed
The guess may be that VS Install for yourself later , Instead of installing Unity When downloading and installing through the options it provides VS Debugging of did not work with Unity Make a full correlation ( Can still pass through VS Menu bar debugging —— Attach to Unity Program debugging , but VS The default display button is start rather than attach to Unity).
Reason two : Current version vs. higher version VS Some functions are not supported by default
Unity2018 The corresponding default download VS by 2017, Maybe this version Unity It's not very supportive VS2019
Solution :
General steps :
open VS Erection sequence Visual Studio Installer —— modify —— Individual components —— Search for Unity, And install Visual Studio Tools for Unity.
Figure 3 
Figure 4
open Unity——Editor—— Preferences——External Tools —— External Script Editor Select the corresponding VS, also Editor Attaching Check on . As shown in the figure below

Figure 5
The following solutions can only be carried out after the general steps are completed .
Solution 1 :
VS menu bar — Debugging options — Attach to Unity Program debugging — Select the corresponding device
Solution 2 ( recommend ):
take Visual Studio 2017 Tools.unitypackage Import Unity. The file location is as follows
C:\Program Files (x86)\Microsoft Visual Studio Tools for Unity\15.0 
Shut down restart Unity and VS that will do .( see )
summary
Keep hungry , Stay foolish .
The only thing the world can believe is your efforts and the road you have traveled .
边栏推荐
- Question and answer 47: geeks have an appointment - the current monitoring system construction of CSC
- Introduction and construction of consul Registration Center
- Technology cloud report: more than zero trust, the wild hope of Parra's "Digital Security Cloud strategy"
- Embedded development: embedded foundation -- threads and tasks
- 预处理指令
- Array of sword finger offer question bank summary (I) (C language version)
- Force deduction ----- calculate the money of the force deduction bank
- Network protocol: TCP part2
- Network RTK UAV test [easy to understand]
- 103. (cesium chapter) cesium honeycomb diagram (square)
猜你喜欢

Recommended books | essentials of industrial digital transformation: methods and Practice

How to realize reliable transmission with UDP?

Do you still have certificates to participate in the open source community?

Online XML to JSON tool

Jmeter——接口测试

leetcode-6131:不可能得到的最短骰子序列

Chinese son-in-law OTA Ono became the first Asian president of the University of Michigan, with an annual salary of more than 6.5 million!

【高等数学】【1】函数、极限、连续
![[advanced mathematics] [3] Application of differential mean value theorem and derivative](/img/a9/3b024dbbb201bee4eed6c9f6ce3001.png)
[advanced mathematics] [3] Application of differential mean value theorem and derivative

Leetcode-6127: number of high-quality pairs
随机推荐
Implementation of simple registration and login
Question and answer 47: geeks have an appointment - the current monitoring system construction of CSC
Dataframe first performs grouping operation and then combines output
DIY personal server (DIY storage server)
How to choose a microservice registration center?
[advanced drawing of single cell] 07. Display of KEGG enrichment results
Link list of sword finger offer question bank summary (III) (C language version)
[today in history] July 18: Intel was founded; The first photo was posted on the world wide web; EBay spins off PayPal
【ONNX】pytorch模型导出成ONNX格式:支持多参数与动态输入
MySQL date [plus sign / +] condition filtering problem
[advanced mathematics] [4] indefinite integral
Web crawler principle analysis "suggestions collection"
2022.7.24-----leetcode.1184
FanoutExchange交换机代码教程
[paper reading] unpaired image to image translation using cycle consistent advantageous networks
leetcode-79:单词搜索
Arrow 之 Parquet
[today in history] July 19: the father of IMAP agreement was born; Project kotlin made a public appearance; New breakthroughs in CT imaging
Solution to oom exceptions caused by improper use of multithreading in production environment (supreme Collection Edition)
[advanced mathematics] [6] differential calculus of multivariate functions