随笔分类 -  Egret

摘要:Egret 异步队列处理 @author ixenos 1.异步处理器 enum AsyncProcessorEnum { } class AsyncProcessor extends egret.EventDispatcher{ static __pool__ = "AsyncProcessorP 阅读全文
posted @ 2022-03-18 18:03 ixenos 阅读(188) 评论(0) 推荐(0)
摘要:Egret 点击穿透 @author ixenos 1.业务场景 点击区域是表现区域的子集, 需要限制点击范围, 在边缘或者某些位置进行点击 2.具体设置 总容器设置touchEnable=false, 让子元素自行响应 内部建立响应容器, 指定响应范围, 作为响应刚体 内容容器设置touchEna 阅读全文
posted @ 2022-01-25 22:25 ixenos 阅读(301) 评论(0) 推荐(0)
摘要:@author ixenos 2021年12月10日 1.通过计算anchorOffsetX对应的中心偏移, 来模拟中心锚点的弹动 1.1 关键伪代码逻辑如下: let scaleV = 0.9; let scaleBaseX = sp.scaleX; let scaleBaseY = sp.sca 阅读全文
posted @ 2021-12-10 15:02 ixenos 阅读(84) 评论(0) 推荐(0)