• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0014 秒)

1. 动画-图集动画 [ 100%]

... // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(); // 播放图集动画 // 获取动画的边界信息 let bounds = ani.getGraphicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2...

来源: Laya2.0_示例 发布时间: 20240930

2. 鼠标交互-Hold [ 87%]

...Press(e) { const Event = Laya.Event; // 鼠标按下后,HOLD_TRIGGER_TIME毫秒后hold Laya.timer.once(HOLD_TRIGGER_TIME, this, this.onHold); Laya.stage.on(Event.MOUSE_UP, this, this.onApeRelease); } onHold() { const Tween = Laya.Tween, Ease = Laya.Ease; Tween.to(this.ape, { "scaleX": 1, "scaleY":...

来源: Laya2.0_示例 发布时间: 20240930

3. 缓动-时间线 [ 49%]

...:Number) offset: 标签事件相对于上个动画的偏移时间(单位:毫秒) this.timeLine.addLabel("turnRight", 0).to(this.target, {x:450, y:100, scaleX:0.5, scaleY:0.5}, 2000, null, 0) .addLabel("turnDown", 0).to(this.target, {x:450, y:300, scaleX:0.2, scaleY:1, alpha:1}, 2000, null, 0) .add...

来源: Laya2.0_示例 发布时间: 20240930

4. UI-RefreshList [ 49%]

...局,位于父节点的距离 * @paramthis.time = null; 需要加载多少毫秒后恢复 */ /** 点击标记按钮处理 * @paramthis.index = null; 要删除的列表索引 */ /** 单元格上的删除按钮点击逻辑 * @paramthis.index = null; 要删除的列表索引 */ /** 创建list模拟数...

来源: Laya2.0_示例 发布时间: 20240930