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

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

11. 3D 鼠标检测 错乱 [ 94%]

....d3.js _update方法为 _update() { var i=0,n=0,j=0,m=0; n=this._eventList.length; var cameras=this._scene._cameraPool; if (n > 0){ for (i=0;i < n;i++){ var e=this._eventList; switch (e.type){ case "mousedown": this._mouseTouchDown(); break ; case "mouseup": this._mouseTouchUp(); break ; case ...

来源: Laya_社区 发布时间: 20200119

12. 混合模式-Lighter [ 94%]

...th.floor(bgColorChannels.b); var r = bgColorChannels.r.toString(16); r = r.length == 2 ? r : "0" + r; var g = bgColorChannels.g.toString(16); g = g.length == 2 ? g : "0" + g; var b = bgColorChannels.b.toString(16); b = b.length == 2 ? b : "0" + b; return "#" + r + g + b; } } new BlendMode_Lighter();...

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

13. 混合模式-Lighter [ 93%]

...th.floor(bgColorChannels.b); var r = bgColorChannels.r.toString(16); r = r.length == 2 ? r : "0" + r; var g = bgColorChannels.g.toString(16); g = g.length == 2 ? g : "0" + g; var b = bgColorChannels.b.toString(16); b = b.length == 2 ? b : "0" + b; return "#" + r + g + b; } })();module laya { import ...

来源: Laya_示例 发布时间: 20241118

14. ide跑没问题,安卓包跑报错 [ 93%]

...Array<Sprite> = [] 被调用的函数 bodyCheck() { if (this.bodyArr.length <= 0) return; if (this.eatBean >= this.bodyBeanNum && this.bodyArr.length < this.bodyMaxNum) { let addBodyNum = Math.floor(this.eatBean / this.bodyBeanNum) let x = this.bodyArr[this.bodyArr.length - 1]...

来源: Laya_社区 发布时间: 20180601

15. 其他引擎的Demo-Example_21 [ 93%]

...nction onMouseDown() { isDown = true; color = colors[colorCount++ % colors.length]; path.length = 0; } function onMouseMove() { if (!isDown) return; path.push(Laya.stage.mouseX); path.push(Laya.stage.mouseY); } function onMouseUp() { isDown = false; canvasGraphics.drawPoly(0, 0, path.concat(), color...

来源: Laya_示例 发布时间: 20241118

16. 分享,扩展Laya.Text组件实现简单的富文本 [ 92%]

...._text) password = false; var x = 0, y = 0; var end = Math.min(this._lines.length, visibleLineCount + begin) || 1; let color = this.color; let underline = this.underline; let bold = this.bold; for (var i = begin; i < end; i++) { var lines = this.typeLines[i]; var _word; if (this.align == "right")...

来源: Laya_社区 发布时间: 20180417

17. 其他引擎的Demo-Example_21 [ 92%]

...ics; } onMouseDown() { isDown = true; color = colors[colorCount++ % colors.length]; path.length = 0; } onMouseMove() { if (!isDown) return; path.push(Laya.stage.mouseX); path.push(Laya.stage.mouseY); } onMouseUp() { isDown = false; canvasGraphics.drawPoly(0, 0, path.concat(), color); } animate() { l...

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

18. UI-Button [ 92%]

...UTTON_WIDTH) / 2; yOffset = (Laya.stage.height - VERTICAL_SPACING * (skins.length / COLUMNS - 1) - BUTTON_HEIGHT) / 2; Laya.loader.load(skins, Handler.create(this, this.onUIAssetsLoaded)); } onUIAssetsLoaded() { for (let i = 0, len = skins.length; i ; constructor() { // 不支持WebGL时自动切换...

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

19. UI-Button [ 92%]

...UTTON_WIDTH) / 2; yOffset = (Laya.stage.height - VERTICAL_SPACING * (skins.length / COLUMNS - 1) - BUTTON_HEIGHT) / 2; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); })(); function onUIAssetsLoaded() { for (var i = 0, len = skins.length; i ; constructor() { // 不支持WebGL时自...

来源: Laya_示例 发布时间: 20241118

20. LayaBox 出错啦,请把此信息截图给研发商 SimpleSingletonList [ 92%]

...         }                          this.length--;             if (index!==this.length){                 var end=this.elements[this.length];                 // @xd added, 添加end是存存在判断          ...

来源: Laya_社区 发布时间: 20190618