Fork me on GitHub
打赏

Unity如何内置Visual Studio

一、问题的起源

软件环境:Unity 2017.3.0f3,Visual Studio 2013

问题描述:在Unity中创建C#脚本后,准备双击打开进行编辑时,出现了Fatal Error。

 

二、问题的分析

照着它所给的链接下载了Mono,解压安装后重启电脑还是不能够正常使用,于是放弃了,转战开始在网上找寻其他解决方案。

在朋友的帮助下,我找到了问题的根源:

 

 

 

三、问题的解决

1,首先去微软官网下载好Visual Studio。

2,解压、安装、运行(在此不作为重点描述)。

3,启动Unity

4,找到标题栏上的Edit→Preferences→External Tools→选择Visual Studio 2013

 

 

5,问题解决,试着编译运行C#文件。

 

posted @ 2018-02-05 21:20  Zoctopus_Zhang  阅读(8083)  评论(0编辑  收藏  举报
// function btn_donateClick() { var DivPopup = document.getElementById('Div_popup'); var DivMasklayer = document.getElementById('div_masklayer'); DivMasklayer.style.display = 'block'; DivPopup.style.display = 'block'; var h = Div_popup.clientHeight; with (Div_popup.style) { marginTop = -h / 2 + 'px'; } } function MasklayerClick() { var masklayer = document.getElementById('div_masklayer'); var divImg = document.getElementById("Div_popup"); masklayer.style.display = "none"; divImg.style.display = "none"; } setTimeout( function () { document.getElementById('div_masklayer').onclick = MasklayerClick; document.getElementById('btn_donate').onclick = btn_donateClick; var a_gzw = document.getElementById("guanzhuwo"); a_gzw.href = "javascript:void(0);"; $("#guanzhuwo").attr("onclick","follow('33513f9f-ba13-e011-ac81-842b2b196315');"); }, 900);