Unity3d 3.5: Windows coding and debug environment Summary

Source: Internet
Author: User

Unity3d3.5 has been used for some time. The integrated environment for encoding and debugging is summarized as follows:


(1) EditCodeUsing Visual Studio, you can use VA and other auxiliary tools,Relative to monodevelopHighlight will also be much more comfortable. If you always use vs for code editing, Chinese Garbled text will not be commented out, But monodevelop will see Garbled text. In unity3d 3.5, you can configure the default open ide. We recommend that you select vs to avoid a bug in version 3.5. The bug is described as follows:
For developers who install Visual Studio 2008 on a non-C disk, if they set the default ide To monodevelop in the Unity Editor, an SLN file with version 11 will be generated, as a result, vs2008 cannot open the corresponding SLN, unless you modify the SLN file (use text to open it, modify its version number to 10), but if any CS file is added or deleted, the Unity editor generates a new SLN file, which requires manual modification.

Solution: Install Visual Studio 2008 on disk C and set the default script ide of the Unity editor to Visual Studio 2008.ProgramFor debugging, start monodevelop outside the unity editor, and then open the SLN file generated by the Unity editor.


(2) Use monodevelop to debug the code. start monodevelop, open the SLN file generated by the editor, and open the unity editor. You can attach the editor process in monodevelop immediately, or attach the editor when it is in the gameplay status, yes.

Actually, I really want to see how to use Visual Studio to edit and debug Code. However, it seems unlikely that the DLL compiled by JIT in the Unity editor is a mono DLL or PDB file, it is likely to be inconsistent with Microsoft's standards. I have tried to use the DLL compiled by Visual Studio to replace the DLL compiled by the editor. It can run normally, because mono implements a set of. Net implementations. However, the Visual Studio attach editor process still fails to be debugged. It is very likely that there is a problem with PDB and the PDB generated by vs cannot be loaded.


If any of the hosts can debug unity3d in Vs, please kindly advise. Thank you very much * ^_^ *

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.