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

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

2511. List翻页效果怎么实现 [ 45%]

... text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(index: number) { if (this.m_index != index) { for (let i = 1; i < 7; i++) { let skin = "u...

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

2512. LayaRender渲染含有多个part的Body存在Bug [ 45%]

... size = 200, x = 200, y = 200; var sp = new Laya.Sprite(); var text = Laya.loader.getRes("res/bar.png"); var w = size, h = size/5; sp.pivot(w/2, h/2); sp.graphics.fillTexture(text, 0, 0, w, h); partA = Matter.Bodies.rectangle(x, y, w, h, { isStatic:true, layaSprite:sp, });  sp = new Laya.Sprite(); ...

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

2513. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...件均已创建完毕,此方法只执行一次 */ onAwake(): void { Laya.loader.load(this.skin).then( ()=>{ this.onLoadComplete(); } ); } private onLoadComplete(e: any = null): void { let ta: Laya.TextArea = new Laya.TextArea(""); ta.skin = this.skin; ta.font = "Arial"; ta.fontSize = 18; ta.bol...

来源: Laya3.0_文档 发布时间: 20251010

2514. 动画-旧版骨骼动画 [ 45%]

...SkinAnimation(spirit3D._childs[i], index); } private loadUI(): void { Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(this, function (): void { this.changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")) as Laya.Bu...

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

2515. 请教文档中Graphic.drawTextures方法第二个参数的具体参数格式 [ 45%]

...a2.5d项目美术规范的问题哈 2.0 drawTexture color参数无效 Laya.Loader.getRes请教 问题状态 最新活动: 2018-01-12 11:12 浏览: 1368 关注: 5 人 cuixueying • 2017-04-05 20:42 不用写成json,直接填写参数即可,跟接口处的参数一一对应上即可! rainysky ...

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

2516. [LayaAir3]升级到3.3.0-beta4版本后微信小程序加载代码分包没返回 [ 45%]

...加载的代码分包没返回,测试日志图如下所示: , 查看Loader.downloader.package源码实现,发现其并没有加额外处理: 然后我屏蔽这个函数调用,直接执行后续的流程,如下图所示: 然后发现执行Browser.loadLib的Browser.document.body.append...

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

2517. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...标点击触发播放 Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { Laya.loader.load("resources/layaAir.mp4").then(() => { this.video.play(); //播放视频 }); }) } } 如果是在LayaAir IDE中运行,则VideoNode无需通过事件触发播放。但是在Chrome中,自动播放只允许静...

来源: Laya3.0_文档 发布时间: 20251010

2518. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 44%]

...tage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; //预加载资源 Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { showBg(); createTimerAnimation(); showTotalSeconds(); createController(); } function showBg() { var b...

来源: Laya2.0_文档 发布时间: 20210715

2519. discard property,please use transform's property instead [ 44%]

...耗性能         directionLight.shadowPCFType = 3;         Laya.loader.create([             "res/plane.lh",             "res/LayaMonkey.lh"         ], Laya.Handler.create(this, onComplete));         var _quaternion = new Laya.Quaternion();         Laya.timer.frameLoo...

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

2520. 垂直布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createvbox(); // 添加VBox组件 this.owner.addChild(this.vbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins);...

来源: Laya3.0_文档 发布时间: 20251010