Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to integrate vs2008 to speed up unity c # development

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to integrate vs2008 to speed up unity c # development. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

There are three programming languages used in Unity3D: curvy JS and BOO. At the same time with a free editor mono, but in the course of the project mono is not yet mature, such as code hints, code format checking is not good, so in windows, the editor or VS is the most powerful, and c # is closer to the face of the object of development mode, more conducive to our development of large projects, so this article discusses how to let Unity3D use VS2008 for project development. Because I am not familiar with the boo language, I will not elaborate on the boo language. He he

Step 1: install unity and vs first Note: the versions of vs2008 and unity3.4 I use here can be slightly different, but the overall difference is not significant.

Step 2: open unity in the toolbar edit- > preferences option

Under General options, click the Externel Script Editor selection box to select

If there is vs in the selection, you can choose it. Otherwise, click the browse option to find the program execution file of vs. My execution file is located in the Microsoft Visual Studio 9.0\ Common7\ IDE\ devenv.exe file under the program installation directory, and then click close.

Step 3: ok done now if you click the c # class file in the resource file of the unity project, you can directly associate the vs development tool instead of mono, which is the most important because it automatically introduces the nuityUnityEngine.dll class resource package.

Some students may want to ask me if I can open or create a new unity c # file in vs.

Hehe, the answer is yes. Let's take a look at the C# class management of nuity using vs in a new project.

Step 1: first use unity to create a new nuity project unity will exist in the project path asset directory Note: most of us are here to store our resource files and script files

Step 2: start vs to create a new class library project Note: point to the asset directory in the path of the unity project in the previous step as shown in the figure.

Step 3: add a reference to unity UnityEngine.dll to the reference of vs the UnityEngine.dll file is located in the Unity\ Editor\ Data\ Managed directory

Step 4: create a new c # class in vs

Note: 1: using UnityEngine needs to be imported into the header.

2: and remove the namespace because unity currently does not support the namespace of c #. Subsequent versions of the namespace will.

3: inheritance: MonoBehaviour

If you don't do the above two steps, you can't import it into the game control of unity. Oh, it will go wrong.

For more exciting unity3d technical articles, please click http://www.gopedu.com/article.

Then return to the resource directory in unity to see the c # class established by vs and use the

Thank you for reading! This is the end of the article on "how to integrate vs2008 to speed up the development of unity c #". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report