ZERO_BEYOND

博客园 首页 联系 订阅 管理

2023年7月15日

摘要: string dir = Application.persistentDataPath;//万能路径,打包前打包后移动端都可用,该路径可读、可写,但是只能在程序运行时才能读写操作,不能提前将数据放入这个路径。 #if UNITY_EDITOR dir = Application.streamingA 阅读全文
posted @ 2023-07-15 11:56 ZERO_BEYOND 阅读(95) 评论(0) 推荐(0)

摘要: 1.二进制 private static void SaveByBinary() { //创建二进制格式化程序 BinaryFormatter bf = new BinaryFormatter(); //创建一个文件流 FileStream fs = File.Create(GetFilePath( 阅读全文
posted @ 2023-07-15 11:44 ZERO_BEYOND 阅读(243) 评论(0) 推荐(0)

摘要: 前期使用反编译工具,例如:dnSpy,打开指定dll,展开dll后,右键可对其命名空间,模块,程序集进行编辑。因为缺少源码,反编译后的dll代码与源码存在差异,导致编译后的dll大概率会报错,无法修改代码后重新打包,如果要修改dll里的代码并重新打包,需要用到微软自带反编译工具。 路径:C:\Pro 阅读全文
posted @ 2023-07-15 11:40 ZERO_BEYOND 阅读(1374) 评论(0) 推荐(0)

摘要: 1 public static bool IsPointerOverUI() 2 { 3 // 优先检测触摸 4 for (int i = 0; i < Input.touchCount; i++) 5 { 6 Touch touch = Input.touches[i]; 7 if (touch. 阅读全文
posted @ 2023-07-15 02:43 ZERO_BEYOND 阅读(56) 评论(0) 推荐(0)