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

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

1501. IDE里list里添加了一个box后,如何通过点击按钮后添加新的box在下面? [ 81%]

...如何实现通过点击1个【新增】按钮,添加1个同样的box? this.list_item.addItem(this.list_item.box_item); 用上述那行代码无法实现,是少了什么吗? 2018-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

1502. 预制体模块 · LayaAir3文档 · LAYABOX [ 81%]

...el: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看...

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

1503. Laya.loader.create 进度回调函数执行两次!!! 上次发问题一直没有回复 [ 81%]

...一直没有回复 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

1504. 仅在Android微信小游戏下图片错乱 [ 81%]

仅在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

1505. 分享水波一个shader [ 81%]

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

1506. laya.utils.StatUI_API3.0 [ 81%]

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

1507. 头条首次加载黑屏,之后正常.通过调试发现Laya.AtlasInfoManager.enable等API的异步回调进不去 [ 81%]

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

1508. qq小游戏网络音效无法重复播放(有复现demo) [ 81%]

...。 代码很简单,附件为复现工程,具体代码在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

1509. 火狐浏览器上webgl异常 [ 81%]

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

1510. 我想在拖动startDrag时,根据X的值助理其它的业务 [ 81%]

...解决了,谢谢你了 这样才行! 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