Unity
FocusGame
上帝的左手 低调 努力
展开
-
mac jenkins安装以及迁移
mac安装HomeBrew安装HomeBrew命令行中直接输入/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”HomeBrew安装jenkinsbrew install jenkinsbrew services start jenkinsbrew services stop jenkinsbrew services restart jenkins原创 2020-05-22 17:57:27 · 953 阅读 · 1 评论 -
MonoBehaviour Lifecycle
MonoBehaviour Lifecycle(生命周期/脚本执行顺序)切记此图,很重要原创 2018-09-19 20:06:08 · 184 阅读 · 0 评论 -
C#取整函数Math.Round、Math.Ceiling和Math.Floor
1.Math.Round:四舍六入五取偶引用内容Math.Round(0.0) //0Math.Round(0.1) //0Math.Round(0.2) //0Math.Round(0.3) //0Math.Round(0.4) //0Math.Round(0.5) //0Math.Round(0.6) //1Math.Round(0.7) //1Math.Round(0...原创 2018-12-26 19:17:44 · 1590 阅读 · 0 评论 -
Unity OnPostprocessTexture 和 OnPreprocessTexture 使用注意事项
最近在做项目的过程中有操作图片导入 Unity工程后修改图片格式的一些功能,比如(图片压缩格式,Alpha通道信息,图片可读可写等),一看到这个功能,就不假思索的开始使用了AssetPostprocessor的OnPostprocessTexture方法来实现。void OnPostprocessTexture(Texture2D texture2D) { ...原创 2019-01-06 12:02:25 · 5488 阅读 · 0 评论 -
Unity Android平台Application.quit()引起的signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000001c
最近在项目中添加android的游戏退出逻辑,第一时间就想到了Unity的Application.quit()方法来实现,然而,就是这个在普通不过的功能,在有些android设备上却会出现crash。Caused by: java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000001c这个就是cr...原创 2019-01-10 11:25:04 · 8269 阅读 · 1 评论