大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0100 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...如何实现通过点击1个【新增】按钮,添加1个同样的box? this.list_item.addItem(this.list_item.box_item); 用上述那行代码无法实现,是少了什么吗? 2018-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20181219
...el: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看...
来源: Laya3.0_文档 发布时间: 20241014
...一直没有回复 Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); } 输出结果: 0.19186599730944645 0.52519...
来源: Laya_社区 发布时间: 20180717
仅在Android微信小游戏下图片错乱 static preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets in...
来源: Laya_社区 发布时间: 20180609
...ormMap); shader.addSubShader(subShader); subShader.addShaderPass(vs,ps); this.setShaderName("Test1"); } set mainTex(value:BaseTexture) { this._shaderValues.setTexture(this.MAIN_TEX,value); } set noiseTex(value:BaseTexture) { this._shaderValues.setTexture(this.NOISE_TEX,value); } set time(val...
来源: Laya_社区 发布时间: 20190923
...ers ctx: any x: number y: number Returns void set_onclick set_onclick(fn: (this: GlobalEventHandlers, ev: MouseEvent) => any): void Overrides IStatRender.set_onclick Defined in laya/utils/StatUI.ts:168 override 点击性能统计显示区域的处理函数。 Parameters fn: (this: GlobalEventHand...
来源: Laya3.0_api 发布时间: 20231102
... Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded)); Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded)); 2020-04-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20200407
...。 代码很简单,附件为复现工程,具体代码在GameUiTest.js this.imaAudioLocal.on(Laya.Event.CLICK, this, ()=>{ let resUrl = "res/audio/sound_click.wav"; Laya.SoundManager.playSound(resUrl, 1); }); this.imaAudioNet.on(Laya.Event.CLICK, this, ()=>{ let resUrl = "https://具体...
来源: Laya_社区 发布时间: 20200225
...en initialized prior to a partial upload, forcing the browser to clear it. This may be slow. async.race.0._hash.e3a9c451.js%20line%20297%20%3E%20eval:4:30925 Error: WebGL: texSubImage2D: This operation requires zeroing texture data. This is slow. 如题 这可能是什么引起的? 2017-11-20 添...
来源: Laya_社区 发布时间: 20171120
...解决了,谢谢你了 这样才行! public get x(): number { return this._x; } public set x(value: number) { this._x = value; this.event(XYImage.SPRITE_PROPERTY_CHANGE, { "x": this._x }); } Monica • 2017-11-01 12:15 好的,多谢分享。有问题再联系~
来源: Laya_社区 发布时间: 20171030