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

大约有 27 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0028 秒)

11. 程序当中更改适配模式后,没有生效成相对应的适配模式效果是为什么? [ 70%]

...SCALE; //1 console.log("one1", Laya.stage.scaleMode) } else { console.log("two", Laya.stage.scaleMode) Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; console.log("two2", Laya.stage.scaleMode) } } 从打印结果上看适配有做更新,但是ui界面没有刷新成相对应的适配模式,这...

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

12. ToolTip鼠标悬停的使用 [ 67%]

...2:Button=new Button(); Laya.stage.addChild(button2); button2.label="button Two"; button2.pos(250,100); button2.skin="comp/button.png"; button2.toolTip=Handler.create(this,showTips,null,false); //携带参数的自定义鼠标提示 var button3:Button=new Button(); Laya.stage.addChild(button3); butto...

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

13. WebSocket connection to 'ws://192.168.0.8:8102/' failed: Invalid frame header [ 67%]

...clonecode Jul 7 '15 at 10:22 Right, of course, so i need to use the next two (or eight) bytes to store the length instead – BenJacob Jul 7 '15 at 10:25 If the length is between 15 and 65535 bytes then your will have to add a two byte extended length, while if it's larger than 65535 bytes tha...

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

14. 在Laya中使用Matter.js的最简示例 (JS) [ 65%]

...der = Render.create({ element: document.body, engine: engine }); // create two boxes and a ground var boxA = Bodies.rectangle(400, 200, 80, 80); var boxB = Bodies.rectangle(450, 50, 80, 80); var ground = Bodies.rectangle(400, 500, 810, 60, { isStatic: true }); // add all of the bodies to the world W...

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

15. Laya ts版,使用jasmine进行单元测试 [ 61%]

...', function() { expect(Library.ToolService.sum(0 ,0)).toBe(0); }); it('sum two', () => { expect(Library.ToolService.sum(1, 2)).toBe(3); }); });     第三个是 __tests__/Library/UserService.test.tsx/// <reference path="../../src/Library/UserService.ts" /> import fs = require('fs'); impor...

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

16. [LayaAir2]打开vscode之后,原工作区文件夹不见了 [ 56%]

...么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 two shit 相关问题 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的定义!这是为什么? 已上传 Demo 附件 用了第三方socke...

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

17. UI 下的list 配合 label 为什么会多出来一大块空白 怎样去掉 [ 52%]

...ata.push({m_label:{text:"one"}}); data.push({m_label:{text:"two"}}); data.push({m_label:{text:"three"}}); data.push({m_label:{text:"four"}}); data.push({m_label:{text:"five"}}); data.push({m_label:{text:"six"}}); data.push({m_label:{text:&q...

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

18. LIST renderHandler的ITEM高度自定义后,设置content变更其内部容器大小不生效 [ 50%]

...  _cell.layer_one.visible = (-1 == data.task_id);         _cell.layer_two.visible = !_cell.layer_one.visible;         _cell.height = (-1 == data.task_id ? 80 : 152);         if (0 == data.my_index) {// my_index是代码是自定义的下标值             _cell.y = 0;         ...

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

19. iphone6闪退 [ 49%]

...ation/6815AAA5-5DD9-4F5E-B035-86F46C8BD87F/layabox.app/layabox. One of the two will be used. Which one is undefined. 2017-11-27 16:20:55.044 layabox[644:298297] 当前应用软件版本:2.2 2017-11-27 16:20:55.045 layabox[644:298297] 当前应用Local版本号码:2.2 2017-11-27 16:20:55.046 layabo...

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

20. [LayaAir3]Laya3.x graphics.drawCurves 闪烁的问题 [ 44%]

...ints.length < 4 || points.length % 2 !== 0) { throw new Error("At least two points (four numbers) are required, and the total number of values must be even"); } this.points = points; } private static distance(x1: number, y1: number, x2: number, y2: number): number { let dx = x2-x1; let dy = y2-y1...

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