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

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

1691. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 40%]

...ource.value; // cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } })();这段代码直接复制到官网的例子里面执行就能看到了,最新版本引擎中,在renderHandler中强制设置TextInput的值,不会出现数据乱的...

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

1692. 自定义场景继承导出,会在自定义类中加入Laya.前缀导致layaMaxUI文件报错 [ 40%]

.../layaMaxUI.ts"     let fileContent = readFile(layaMaxUI_Path);     console.log("读取文件",fileContent)     if (fileContent ) {             fileContent = fileContent.replace(/Laya\.UICodeView/g,"UICodeView");             fs.writeFileSync(layaMaxUI_Path, fileCon...

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

1693. Laya2.6、2.7等支持async、await编译经验分享 [ 40%]

...urn new Promise((resolve,reject)=>{ Laya.timer.once(10000,this,()=>{ console.log("10s后") resolve() }) }) }  如果有什么问题,欢迎大家一起来分享感恩。 附件 : --> regenerator.runtime_.zip 2020-07-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

1694. Resources already exist,is repeated loading 加载特效报重复加载 [ 40%]

...is, this.onComplete));         //this.onComplete()         console.log("11111111111")         Laya.loader.load("res/threeDimen/particle/2d.lh", Handler.create(this, this.onAssetsLoaded), null, Loader.JSON);     }      public onAssetsLoaded(settings: ParticleSetting): ...

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

1695. 真机调试 开启子域后 提示出现window is not defined [ 40%]

...工程 bt_rank_call_back(body){   this.bt_rank.CALL_BACK = function () { console.log("排行榜") var player_rank = body.wxData.get_canvas_4_code("SHOW_PLAYER_RANK",0) var rankTexture = new Laya.Texture(sharedCanvas); rankTexture.bitmap.alwaysChange = true; var pl = new Laya.Sprite() pl.graphics.dr...

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

1696. [临时解决]bug?加载sk问题 [ 40%]

...rototype;      _proto.preload = function (complete) {         console.log("preload..." + (++this.numPreloadCalls));          if (this.dragon_sk._templet) {             complete();         } else {             Laya.timer.frameOnce(1, this, this.pr...

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

1697. 导航标签组组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 39%]

...owner.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } 运行效果如下动图所示: (动图2-1) Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{c...

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

1698. 微信小游戏在开放数据域绘制排行榜无法显示图片 [ 39%]

...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 问题状态 最新活动: 2019-04-11 16:23 浏览: 6632 关注: 5 人 嘿哈 • 2018-08-30 16:30 我是这样理解的: 在主域里初始化Laya.Browser.w...

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

1699. 报无法找到资源,未升级ide之前不报错 [ 39%]

...n(() => { // 加载完成后,处理逻辑 this.progress.value = 0.98; console.log("加载结束", this.progress.value); Laya.Scene.open("scenes/Index.ls"); //不要使用Laya.Scene.open("./Scenes/Index.ls"); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR...

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

1700. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 39%]

...prite = this.getSprite(); let tx = Laya.Loader.getRes(resName); if (!tx) { console.warn(TipConfig.tips.haveNoTheChar, char); } sp.texture = tx; this.chars.push(sp); this.addChild(sp); } this.sortCharsByAlign(this._align); } /** * 水平对齐方式 */ public set align(v: string) { if (v === this._al...

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