Home  >  Article  >  Backend Development  >  Unity3D's script editor's most streamlined component (VS2017)

Unity3D's script editor's most streamlined component (VS2017)

Y2J
Y2JOriginal
2017-04-27 10:30:463379browse

This article mainly introduces in detail the most streamlined components required by VS2017 as a script editor for Unity3D. It has certain reference value. Interested friends can refer to it

Preface

Using VS2017 as Unity’s script editor requires the most streamlined components.

My test environment

windows 10 x64

windows 7 x64 sp1

Time: 2017-4-22

The most streamlined components

Only three required components are required, these components are optional installation locations

  • C# and Visual Basic Roslyn Compiler

  • Static Analysis Tool

  • Visual Studio Tools For Unity (I downloaded it from the vs plug-in library)

Online installation

1. Download the corresponding version from the official website. The file format is as follows: vs_enterprise__2144843982.1466598399. exe

2. Double-click the download file, accept the agreement, select the required components, and install it

Offline installation

Official documentation:

Create an offline installer for Visual Studio 2017

Visual Studio Enterprise 2017 component directory

Sample script:

The following script, offline download Roslyn compiler, Nuget, UnityVS , the static analysis tool goes to d:\vs2017offline

The code is as follows:

vs_enterprise.exe --layout D:\vs2017offline --add Microsoft.VisualStudio.Component.NuGet Microsoft.VisualStudio.Component.Roslyn.Compiler Microsoft.VisualStudio.Component.Roslyn.LanguageServices Microsoft.VisualStudio.Component.Static.Analysis.Tools Microsoft.VisualStudio.Component.Unity --lang zh-CN

I am on Windows 7 and the installation was not successful, so I don’t comment much, maybe because I just finished the repair. VS2015 computer does not restart.

Disk size occupied after installation

In windows10, I installed several necessary components of Unity + several common small components, which occupied about 1.4G of disk

In windows7, I installed the two necessary components of Unity + .NET desktop development components (WPF, WinForm, console) at the same time, which takes up about 3.7G of disk

VS2017 preview

Change function

If you open the components required for the project and they are not currently installed in VS, VS will automatically pop up to let you install them. The interface is as follows:

If you want to add new functions manually and cannot find the visual studio installer, you can open the downloaded vs installer to make changes. , such as mine: vs_enterprise__2144843982.1466598399.exe, run select change and add the components you need.

Usage experience

Compared with other versions of VS, let’s talk about my personal experience

  • Installation The speed is indeed faster, but the offline version image file is not currently available on the official website.

  • Less memory usage, as can be seen from the task manager

The above is the detailed content of Unity3D's script editor's most streamlined component (VS2017). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn