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

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

1. layaUI.max.all.js 这个文件怎么生成的? [ 100%]

...rops":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"props":{"x":401,"y":56,"skin":"comp/clip_num.pn...

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

2. 用laya自带的ui编辑器 编辑了一个ui界面,怎么加载啊? 怎么写代码让这个ui界面, 在程序运行时,显示出来啊? [ 82%]

...rops":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"props":{"x":401,"y":56,"skin":"comp/clip_num.pn...

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

3. 关于适配有点疑惑 [ 72%]

...种适配模式,有一些困惑   我分别用noscale, fixedwidth, fixedheight进行试验, 代码如下:var rect; (function() { Laya.init(550, 400); // Laya.stage.scaleMode = Stage.SCALE_SHOWALL; // Laya.stage.scaleMode = "noscale"; // Laya.stage.scaleMode = "fixedwidth"; Laya.stage.scaleMod...

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

4. 八叉树与PixelLineSprite3D冲突 [ 60%]

...    if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height, configs);     this.scene3d = new Laya.Scene3D();         Laya.stage.addChild(this.scene3d);         let ss = new Laya.PixelLineSprite3D();         this.scene3d.addChild(ss);     附...

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

5. charRender_Canvas是干啥的,直接加在body底下会引起wcag的报错 [ 60%]

...ll page content shoud be contained by landmarks   <canvas width="1024" height="512" style="left: -10000px; position: absolute;"></canvas> 附件 : --> 2022-07-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

6. 关于UI编辑器的小建议 [ 59%]

...绝对定位,一种是相对定位 绝对定位时,可以使用width,height,x,y 相对定位时,在某些情况下不是很好用 比如说,我有一个按钮,宽高是固定的,100*100,这时我相对于上级的坐标希望是相对位置,right=0,top=0,表示右上角对...

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

7. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 59%]

... object or misses all objects. * When not penetrable, the node's width and height define the mouse collision area (a non-penetrable rectangular area). If the rectangular collision area does not meet the requirements, you can use the drawing area of the hit area as the collision area. The hit area ta...

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

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

...是matter自带的渲染器 2、必须执行 Laya.init(stageWidth, stageHeight, WebGL);否则会报错:TypeError: Cannot read property 'frameLoop' of nullvar Browser = Laya.Browser; var WebGL = Laya.WebGL; var Matter = window.Matter; var LayaRender = window.LayaRender; var stageWidth = 800; var s...

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

9. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 33%]

...]; // 守护神设置旋转 this.angel.pivot(boundAngel.width/2,boundAngel.height); this.angel.rotation = -15; // 守护神设置呼吸 Laya.Tween.to(this.angel,{scaleY:0.99},900,Laya.Ease.linearInOut,Handler.create(this,this.angelTween1)); // 飞艇设置浮动 Laya.Tween.to(this.aeroboat,{y:-data....

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

10. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 17%]

...ferhandle@sprd_allocator.cpp:148] buffer handle size 10479616, width 1080, height 2408, stride 4352, fd 8, format: <private>, phy 0x0, usage 0xb, viraddr 0x0000000000000000 01-06 17:34:41.531 902 1210 I C01401/Bufferqueue: <163>Alloc: buffer handle size 10479616, width 1080, height 2408,...

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