大约有 1,013 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)
...ource.value; // cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } })();这段代码直接复制到官网的例子里面执行就能看到了,最新版本引擎中,在renderHandler中强制设置TextInput的值,不会出现数据乱的...
来源: Laya_社区 发布时间: 20180312
.../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
...urn new Promise((resolve,reject)=>{ Laya.timer.once(10000,this,()=>{ console.log("10s后") resolve() }) }) } 如果有什么问题,欢迎大家一起来分享感恩。 附件 : --> regenerator.runtime_.zip 2020-07-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20200705
...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
...工程 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
...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
...owner.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } 运行效果如下动图所示: (动图2-1) Copyright ©Layabox 2022 all right reserved,powered by LayaAir Engine更新时间: 2023-10-20 20:33:41 img{c...
来源: Laya3.0_文档 发布时间: 20231020
...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
...w Laya.Vector3(0,0,-1); Laya.timer.loop(2000, this, function(){console.log(rigidBody.linearVelocity.z)}); } } //激活启动类 new PhysicsWorldBaseCollider(); 2019-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20191009
...ial = customMaterial; mesh.meshRender.sharedMaterial = customMaterial2; // console.log(mesh4.meshRender.sharedMaterial); shaderDemo.zip 2017-05-25 0 0 分享 微博 QZONE 微信 ebaww 赞同来自: 我按你说的改了一下CustomMaterial.js,效果正确了,现在我想不用代码,直接改....
来源: Laya_社区 发布时间: 20170524