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

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

1. 缓动-时间线 [ 100%]

....log("LabelName:" + label); } keyDown(e) { const Keyboard = Laya.Keyboard; switch(e.keyCode) { case Keyboard.LEFT: this.timeLine.play("turnLeft"); break; case Keyboard.RIGHT: this.timeLine.play("turnRight"); break; case Keyboard.UP: this.timeLine.play("turnUp"); break; case Keyboard.DOWN: this.timeL...

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

2. 鼠标交互-鼠标交互 [ 96%]

... * 鼠标响应事件处理 */ mouseHandler(e) { const Event = Laya.Event; switch (e.type) { case Event.MOUSE_DOWN: this.appendText("\n————————\n左键按下"); break; case Event.MOUSE_UP: this.appendText("\n左键抬起"); break; case Event.CLICK: this.appendText("\n左键点击\n...

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

3. 其他引擎的Demo-Example_05 [ 90%]

...rent = 0; } makeObject(current); } function makeObject(t) { var xd; var i; switch (t) { case 0: for (i = 0; i tpoint1[i]) { tpoint1[i] = tpoint1[i] + 1; } if (points1[i] tpoint2[i]) { tpoint2[i] = tpoint2[i] + 1; } if (points2[i] tpoint3[i]) { tpoint3[i] = tpoint3[i] + 1; } if (points3[i] = []; priv...

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

4. Sprite-屏幕截图 [ 82%]

...s.drawSp.width,this.drawSp.height,"#ff0000"); } private _onclick(e:Event){ switch (e.target.name) { case this.nameArr[0]: var base64Url:string = this._canvas.toDataURL("image/png",1); this.drawImage.skin = base64Url; break; case this.nameArr[1]: var text:Texture = Laya.stage.drawToTexture(Browser.cl...

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

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

...ddGroup(rigidbody, ratio); } private function addGroup(rigidbody, ratio) { switch(ratio) { case 1: rigidbody.group = Physics_Physics_CollisionFiltering.k_smallGroup; break; case 2: rigidbody.group = Physics_Physics_CollisionFiltering.k_middleGroup; break; case 3: rigidbody.group = Physics_Physics_Co...

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