大约有 3,603 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0083 秒)
Laya_社区(2675) Laya3.0_api(265) Laya2.0_文档(227) Laya2.0_api(113) laya_api(98) Laya3.0_文档(97) Laya_示例(83) Laya2.0_示例(45)
...mage的uv动画不能平铺 加载了一张img图片 并且设置了repeat=true,改变uv时图片没有平铺 private onFrame():void{ if(this.testScrollImg){ if(this.testScrollImg._bitmap && this.testScrollImg._bitmap.source){ this.testScrollImg._bitmap.source.repeat = true; var ss:any = t...
来源: Laya_社区 发布时间: 20180321
...谢回答,我最终给父容器加了一个事件穿透(mouseThrough = true)的属性就搞定了。。。 150*****745 • 2018-06-28 15:14 谢谢回答,我最终给父容器加了一个事件穿透(mouseThrough = true)的属性就搞定了。。。
来源: Laya_社区 发布时间: 20180627
... this.graphics.drawLine(0, 0, 1, 0, '#000'); }); this.customRenderEnable = true; this.customRender = (context: Laya.RenderContext, x: number, y: number) => { let webGLContext = context.ctx as Laya.WebGLContext2D; }sprite设置了customRenderEnable = true; 但customRender函数并没有被调用...
来源: Laya_社区 发布时间: 20180728
...的颜色 txt.borderColor = "#23cfcf"; //设置粗体、斜体 txt.bold = true; //设置斜体 txt.italic = true; //设置边距 txt.padding = [5,5,5,5]; Laya.stage.addChild(txt); ```  这里我们就可以看到字体样式、字体大小有明显的变化,文本框的最外围有...
来源: Laya2.0_文档 发布时间: 20210714
...esource.lock Defined in laya/resource/Resource.ts:103 是否加锁,如果true为不能使用自动释放机制。 Optional name name: string Inherited from Resource.name Defined in laya/resource/Resource.ts:105 名称。 url url: string Inherited from Resource.url Defined in laya/resource/Resource...
来源: Laya3.0_api 发布时间: 20231115
...s:199 inheritdoc override Parameters Default value destroyChild: boolean = true Returns void destroyChildren destroyChildren(): void Inherited from Node.destroyChildren Defined in laya/display/Node.ts:211 销毁所有子对象,不销毁自己本身。 Returns void event event(type: string, data?: ...
来源: Laya3.0_api 发布时间: 20231115
...m url 场景地址 * @param closeOther 是否关闭其他场景,默认为true(可选),【注意】被关闭的场景,如果没有设置autoDestroyAtClosed=true,则资源可能不能被回收,需要自己手动回收 * @param param 打开页面的参数,会传递给onOpened方法(...
来源: Laya3.0_文档 发布时间: 20251010
... 1596759671用户 • 2020-08-31 14:17 Laya.SoundManager.useAudioMusic = true;把这个设置为true就可以了 Laya_XS • 2020-09-02 09:48 我们其他的项目到是没有遇到类似的问题,声音直接就可以播放了。你的引擎是1.0,还是2.0.如果方便的话要不提供一个...
来源: Laya_社区 发布时间: 20200825
...对引擎代码和matter.js进行渲染,通过在自变量添加outlaya=true,可以实现分包。 重新发布后会在h5下自动生成一个laya.js文件,按以下方式对laya.js进行添加即可 发布后正常运行: 注意:该分包方式只针对官方示例,开发者自...
来源: Laya_社区 发布时间: 20160514
... 叮当(H5研发) • 2019-08-15 03:25 if(Laya.stage.renderingEnabled==true){ Laya.stage.renderingEnabled=false//停止渲染 Laya.updateTimer.pause() //停止onUpdate Laya.physicsTimer.pause() //停止物理 }else{ Laya.stage.renderingEnabled=true//恢复渲染 Laya.updateTimer.resume() //恢...
来源: Laya_社区 发布时间: 20190518