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

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

1. When asking questions, remember these two tips: [ 100%]

When asking questions, remember these two tips: When asking questions, remember these two tips: Instead of asking “how to do X in LayaBox”, ask “how to solve Y in LayaBox”. In other words, don’t ask how to implement a particular solution, instead describe the problem at hand. Stating the ...

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

2. LayaAir3D 导出和使用U3D粒子特效 [ 83%]

...程度同步更新(如下)   Start Speed -> Curve, Randow Between Two Curve Start Size -> Curve, Randow Between Two Curve 3D Start Rotation -> Curve, Randow Between Two Curve Start Rotation -> Curve, Randow Between Two Curve Start Color -> Gradient, Randow Between Two Gradient E...

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

3. 粒子播放不出来 [ 79%]

...curve模式为固定值constant或者两个固定值随机random between two constant的模式,目前curve与random between two curve模式暂不支持,会出现报错以及粒子无法播放的问题。 2022-07-20 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题...

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

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

...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

5. ToolTip鼠标悬停的使用 [ 68%]

...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

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

...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

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

...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

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

...', 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

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

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

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

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

...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