06 2018 档案
摘要:在扩展Unity的时候,往往会用到一些属性,这里将常用的列一下。 1、属性只读; #if UNITY_EDITOR using UnityEditor; #endif using UnityEngine; public class ReadOnlyAttribute : PropertyAttribute { } #if UNITY_EDITOR [CustomPropertyDrawe...
阅读全文
摘要:菜单 Preferences –> Settings 右侧的User { "font_size": 12, "show_encoding":true, "font_options": [ "directwrite" ]}
阅读全文
摘要:最近在打包的时候,遇到一个坑。特此记录一下 起因是发现 Unity 5.4 版本,使用c#写的下载,下载速度无法突破 2M/s,同样的网络,后来横向对比使用原来 Cocos2d 开始的游戏,可以达到 7M/s。海外推广一般是小包(iOS是150M以内,安卓50M以内) + 扩展包,如果下载速度过慢,对市场推广和用户转化都会有影响(下载等待时间变长了)。然后就决定基于 libcurl 写了一个C...
阅读全文