当前位置:网站首页>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 .
边栏推荐
- [today in history] July 17: Softbank acquired arm; The first email interruption; Wikimedia International Conference
- “链”接无限可能:数字资产链,精彩马上来!
- [today in history] July 3: ergonomic standards act; The birth of pioneers in the field of consumer electronics; Ubisoft releases uplay
- Brush questions with binary tree (4)
- 数据库清空表数据并让主键从1开始
- Vulnhub | dc: 5 | [actual combat]
- leetcode-919:完全二叉树插入器
- test
- [today in history] July 19: the father of IMAP agreement was born; Project kotlin made a public appearance; New breakthroughs in CT imaging
- Online random coin tossing positive and negative statistical tool
猜你喜欢
![[today in history] June 28: musk was born; Microsoft launched office 365; The inventor of Chua's circuit was born](/img/bf/09ccf36caec099098a22f0e8b670bd.png)
[today in history] June 28: musk was born; Microsoft launched office 365; The inventor of Chua's circuit was born
![[today in history] July 3: ergonomic standards act; The birth of pioneers in the field of consumer electronics; Ubisoft releases uplay](/img/18/b06e2e5a2f76dc2da1c2374b8424b3.png)
[today in history] July 3: ergonomic standards act; The birth of pioneers in the field of consumer electronics; Ubisoft releases uplay
![[today in history] July 2: BitTorrent came out; The commercial system linspire was acquired; Sony deploys Playstation now](/img/7d/7a01c8c6923077d6c201bf1ae02c8c.png)
[today in history] July 2: BitTorrent came out; The commercial system linspire was acquired; Sony deploys Playstation now

leetcode-6125:相等行列对

Clickhouse notes 02 -- installation test clickvisual

增加 swap 空间
![[advanced drawing of single cell] 07. Display of KEGG enrichment results](/img/60/09c5f44d64b96c6e4d57e5f426e4ed.png)
[advanced drawing of single cell] 07. Display of KEGG enrichment results

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!

【高等数学】【3】微分中值定理与导数的应用

Why did I choose to become a network engineer after graduating from weak current for 3 months
随机推荐
火山引擎项亮:机器学习与智能推荐平台多云部署解决方案正式发布
How to obtain the subordinate / annotation information of KEGG channel
ROS_ Rqt toolbox
【高等数学】【4】不定积分
移动web布局方法
每条你收藏的资讯背后,都离不开TA
[cloud native] use of Nacos taskmanager task management
毕业从事弱电3个月,我为什么会选择转行网络工程师
Clickhouse notes 02 -- installation test clickvisual
Open source SPL enhances mangodb computing
MySQL 日期【加号/+】条件筛选问题
Go language go language built-in container
Compilation and operation of program
Is QQ 32-bit or 64 bit software (where to see whether the computer is 32-bit or 64 bit)
预处理指令
MPI学习笔记(二):矩阵相乘的两种实现方法
[today in history] June 30: von Neumann published the first draft; The semiconductor war in the late 1990s; CBS acquires CNET
Kubernetes进阶部分学习笔记
Kubernetes advanced part learning notes
Brush questions with binary tree (4)