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

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

1. 计时器-延迟调用 [ 100%]

...cript三种开发语言、LayaAirIDE让项目开发更高效。class Timer_CallLater { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alig...

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

2. 2D物理-碰撞过滤器 [ 34%]

...useJoint: MouseJoint = this.curTarget.addComponent(MouseJoint); Laya.timer.callLater(mouseJoint, mouseJoint.onMouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.destoryJoint); Laya.stage.on(Event.MOUSE_OUT, this, this.destoryJoint); // 方案二,自己实现,可以实现更大程度的控制 /...

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