一步到位式导入:
https://code.visualstudio.com/Docs/runtimes/unity
缺点是会在项目之下建立所需代码,不过比Mono编辑还是强多了。
其它导入方式都感觉有点麻烦。
这个网址还包括了很多格式相关的处理,比如:
导入完成后的工作:
首先项目中去除掉脚本之外的文件:
To do this, add the following JSON to your workspace settings.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
// Configure glob patterns for excluding files and folders. <span class="hljs-string">"files.exclude"</span>: { "<span class="hljs-attribute">**/.git</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>, "<span class="hljs-attribute">**/.DS_Store</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>, "<span class="hljs-attribute">**/*.meta</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>, "<span class="hljs-attribute">**/*.*.meta</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>, "<span class="hljs-attribute">**/*.unity</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>, "<span class="hljs-attribute">**/*.unityproj</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>, "<span class="hljs-attribute">**/*.mat</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>, "<span class="hljs-attribute">**/*.fbx</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>, "<span class="hljs-attribute">**/*.FBX</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>, "<span class="hljs-attribute">**/*.tga</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>, "<span class="hljs-attribute">**/*.cubemap</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>, "<span class="hljs-attribute">**/**.prefab</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>, "<span class="hljs-attribute">**/Library</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>, "<span class="hljs-attribute">**/ProjectSettings</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>, "<span class="hljs-attribute">**/Temp</span>": <span class="hljs-value"><span class="hljs-literal">true</span> </span>} |
都安装完之后,如果出现Mono版本相关的问题( Cannot start Omnisharp because Mono version >=x.x.x is required ),到这里进行下载安装:
http://www.mono-project.com/download/
good job!
这个可以有!
又快过年了,咿呀咿呀呦
乙未年(羊)冬月十四 2015-12-24
提前祝您新年快乐。
乙未年(羊)冬月十九 2015-12-29
Happy New Year.