1. 安装windows7专业版本,激活按tb,安装office2010;
2. 安装更新系统相应所需环境,用360更新相关dll;
3. 安装.net , 安装visual studio code, 安装unity hub;
4. 激活上述,unity hub选个人激活;
5. 打开unity hub,新建项目,取消plasticXXX,finish,此时可以运行第一个unity demo
6. android环境、script编辑器配置: edit->preferences->external tools
说说win10,嗯,有些东西解决不了,这样。
说说VS code可能需要解决的一些问题:
这里说说为什么不用vs code,因为打开时间太长;
vsc安装:
Auto-Using for C#
c#
chinese
Debugger for Unity
unity code snippt
Unity Tools
unity code
首选项-》格式化-》勾选保存格式化
如果此时不能打出GameObject的补全,则:
查看-》命令面板-》OmniSharp: select project选择sln文件
Attempted to update project that is not loaded:
In the VS Code menu, go into File / Preferences / Settings.
In the "Search settings" window, type omnisharp.path
Click on "Edit in settings.json" link.
Add (or edit) like this: "omnisharp.path": "latest"
(from: Problem after update to .NET SDK 2.2.202-1 · Issue #2965 · OmniSharp/omnisharp-vscode · GitHub)
按错误提示下载4.7.1版本,重启vs,可以显示GameObject补全
2021/9/12
注: 如果vs code自动更新,则更新后,如果不代码提示,则卸载插件重新安装可以恢复
2021/12/12
如何关闭OmniSharp更新?
搜索输入: omnisharp.path, 找到对应列,输入版本
C:\Users\cytus\.vscode\extensions\ms-dotnettools.csharp-1.23.17\.omnisharp
比如1.37.17 覆盖latest
这样就不会自动下载并导致编辑器格式化或者自动拼写失效。