摘要: 🔍 问题根源与核心解决方案 问题的核心在于,你的图片资源在导出时可能已经进行了预乘Alpha处理(即RGB颜色值已经与Alpha通道相乘),但在Cocos Creator中,渲染组件的设置与之不匹配,导致透明区域(本应完全透明)显示出残留的颜色(如黄色)。 核心解决方法是统一预乘Alpha的设置, 阅读全文
posted @ 2025-12-19 15:02 星空探险家 阅读(2) 评论(0) 推荐(0)
摘要: 问题 Unity 打包WebGL 网页测试 报错 Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in em 阅读全文
posted @ 2025-06-17 11:44 星空探险家 阅读(71) 评论(0) 推荐(0)
摘要: 一、概述 记录Rider激活方法 二、流程 1.下载 安装 Rider 官方下载Rider即可 注:官网 2.打开Rider ->关闭Rider 注:不要问为什么,我也不知道。 3.下载解压工具包 3.1 打开 ->jetbra ->scripts 3.2 点击uninstall-all-users 阅读全文
posted @ 2025-04-02 22:51 星空探险家 阅读(2524) 评论(2) 推荐(0)
摘要: 1.安卓版本过低 报错提示 Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 D:\Develop\Unity\HRVTest\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\ 阅读全文
posted @ 2024-04-18 11:53 星空探险家 阅读(1038) 评论(0) 推荐(1)
摘要: https://zhuanlan.zhihu.com/p/380676007 阅读全文
posted @ 2024-04-07 18:28 星空探险家 阅读(108) 评论(0) 推荐(0)
摘要: 介绍 封装的消息机制 使用 注册消息 Reg(MessageType messageType, MessageDelHandle handle); messageType : 注册消息类型 handle :消息传入时回调方法(该方法需拥有参数Message) 注销消息 UnReg(MessageTy 阅读全文
posted @ 2024-02-17 11:15 星空探险家 阅读(129) 评论(0) 推荐(0)
摘要: 内容 代码 public class Singleton<T> where T : new() { private static T _instance; public static T Instance { get { if (_instance == null) { _instance = ne 阅读全文
posted @ 2024-02-17 10:41 星空探险家 阅读(74) 评论(0) 推荐(0)
摘要: 介绍 Addressables是Unity官方推出的用于资源热更的系统,可在Package Manager里面下载。 安装 可在Package Manager里面下载、安装即可使用 配置 Addressables 配置 使用 基础 Addressables 使用 远程分发 Addressables 阅读全文
posted @ 2024-02-16 13:02 星空探险家 阅读(53) 评论(0) 推荐(0)
摘要: 概念 时间戳 时间戳就是当前时间距离1970年1月1日0点0时0分0秒(转换成北京时间是1970年1月1日8点0时0分0秒)距离你要计算的时间的秒数或者毫秒数。 总结: TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); 被 阅读全文
posted @ 2024-02-14 19:55 星空探险家 阅读(190) 评论(0) 推荐(0)
摘要: Bug描述 ontriggerstay2d 碰撞体中连续执行两次 出现场景 在OnTriggerStay2D中进行判定,按下指定按键(或判断需要执行单次逻辑的控制器)时,判定成功后执行两次或更多。 问题分析 1.多个碰撞器进入判定区域 可能进入判定区域的物体上挂载多种碰撞器,导致在判定成功后,执行多 阅读全文
posted @ 2024-01-31 16:57 星空探险家 阅读(154) 评论(0) 推荐(0)