摘要: 在unity中有些windows引用没有自动添加,如果需要时需要手动添加,步骤如下: 1、未添加时如图,在应用中是没有System.Management这一引用,编辑器报错。 2、点击引用也没有”添加引用“选项,如图 3、双击应用下的任意引用,会出现”对象管理器“, 将C:\Windows\Micr 阅读全文
posted @ 2021-05-06 14:12 llkj 阅读(1329) 评论(0) 推荐(0) 编辑
摘要: 转载自:https://www.it610.com/article/1295062035498868736.htm 1.webgl不显示字体开始导出来发现一些字不显示,还以为分辨率压缩Text文本导致字不显示,后来发现原来是webgl的问题,查阅信息说不要使用unity自带的字体即可。2.webgl 阅读全文
posted @ 2021-04-09 08:49 llkj 阅读(2197) 评论(0) 推荐(0) 编辑
摘要: 在导入Unity官方的资源包(Standard Assets)时出现SpeedTree materials need to be regenerated.错误, 错误原因:可能是因为SpeedTree 文件夹中的部分对象的材质需要重新生成一下。 解决方法:找到可能出问题的对象(双击错误提示框,即可定 阅读全文
posted @ 2021-02-22 10:56 llkj 阅读(939) 评论(0) 推荐(0) 编辑
摘要: 1 // 报错内容 Your project does not reference ".NETFramework,Version=v4.5" framework. Add a reference to ".NETFramework,Version=v4.5" in the "TargetFramew 阅读全文
posted @ 2021-02-20 14:54 llkj 阅读(608) 评论(0) 推荐(1) 编辑
摘要: 打开项目时, Import Small assets 总是失败,卡死,导致 出现弹框 “Unity has stopped working” 将项目生成 的 Library、Logs、Packages 三个文件夹删除即可。 阅读全文
posted @ 2021-02-20 11:48 llkj 阅读(2411) 评论(0) 推荐(0) 编辑
摘要: 在关闭按钮 Button 的 Click 事件中,添加语句 // 关闭该应用程序的所有子窗口 Application.Current.Shutdown(); 阅读全文
posted @ 2021-01-31 09:13 llkj 阅读(85) 评论(0) 推荐(0) 编辑
摘要: WPF 中设置 Button 的属性 isDefault 为 True 阅读全文
posted @ 2021-01-31 08:44 llkj 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 1 // 关闭全部窗体并退出程序 2 3 Application.Current.Shutdown(); 阅读全文
posted @ 2020-12-31 13:35 llkj 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 1 public class People 2 { 3 DateTime birthday, 4 string name, 5 string cardNo 6 } 7 8 9 List<People> peoples = new List<People>(); 10 peoples.Add(...) 阅读全文
posted @ 2020-12-10 14:58 llkj 阅读(79) 评论(0) 推荐(0) 编辑
摘要: private bool TryIp(string ipaddress) { string[] ip = new string[4]; string s = "."; ip = ipaddress.Split(s.ToCharArray(), 4); if (ip.Length < 4) { ret 阅读全文
posted @ 2020-11-30 17:02 llkj 阅读(370) 评论(0) 推荐(0) 编辑