10 2021 档案

摘要:部分手机字符串转小数时,可能会出现精度问题,用如下接口代替 float.Parse()和float.TryParse()可解决问题,代码如下: 1 static StringBuilder s_sb = new StringBuilder(); 2 3 4 public static bool Tr 阅读全文
posted @ 2021-10-27 11:27 孤独の巡礼 阅读(218) 评论(0) 推荐(0) 编辑
摘要:代码如下: 批量设置: 1 using System.Collections.Generic; 2 using System.IO; 3 using UnityEditor; 4 using UnityEngine; 5 6 public class TextureCompressTool : Sc 阅读全文
posted @ 2021-10-21 13:57 孤独の巡礼 阅读(635) 评论(0) 推荐(0) 编辑
摘要:以下代码实现了Addressable Assets的初始化,登陆时下载,静默下载,如下: 1 using ClientData; 2 using Common; 3 using System; 4 using System.Collections; 5 using System.Collection 阅读全文
posted @ 2021-10-15 18:41 孤独の巡礼 阅读(994) 评论(0) 推荐(0) 编辑