大约有 1,326 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0056 秒)
...mboBox.selectHandler = new Handler(this, onSelect, [comboBox]); Laya.stage.addChild(comboBox); return comboBox; } function onSelect(cb) { console.log("选中了: " + cb.selectedLabel); } })(); ```
来源: Laya2.0_文档 发布时间: 20210714
...gt; { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d.addChild(sp3); }); }) } printProgress(r...
来源: Laya3.0_文档 发布时间: 20250103
...Data.getInstance().openId }); this.rank = new Laya.Sprite(); this.box_rank.addChild(this.rank); Laya.Browser.window.sharedCanvas.width = this.box_rank.width; Laya.Browser.window.sharedCanvas.height = this.box_rank.height; //alwaysChange = true不好用了 手动刷新 Laya.timer.loop(50, this, () =&...
来源: Laya_社区 发布时间: 20181001
...hics.drawTexture(texture, 0, 0, texture.width, texture.height); Laya.stage.addChild(sprite); }); 2018-11-23 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 阿噗 赞同来自: if(Browser.onMiniGame) { WXOpe...
来源: Laya_社区 发布时间: 20181123
...s.createEffect, this); effect.pos(this._sp.x, this._sp.y); this._sp.parent.addChild(effect); effect.play(0, false); this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } } createEffect(): Laya.Animation { let ani: Laya.Animation = new Laya.Animation(); ani.loadAnimation("catFly.ani"); a...
来源: Laya_社区 发布时间: 20191019
... content.y = 0; addChild(content); content.play(); setInterval(function(){content.nextFrame()},50) } } } 附件 : --> 2017-03-17 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170317
... txt.fontSize = 30; txt.wordWrap = true; txt.color = "#FF9632"; Laya.stage.addChild(txt); var test:Object = JSON.parse('{"id": 0, "name": "Chen"}'); traceMsg(test['id']); traceMsg(test['name']); var jsonURL:String = "res/json/config.json"; traceMsg("加载: " + jsonURL); Laya.loader.load(jsonURL, Ha...
来源: Laya_社区 发布时间: 20180227
...erData.username,0,0,gui.imgPhoto.width,gui.imgPhoto.height ); gui.imgPhoto.addChild(photo); gui.imgPhoto.mask=mask;载入的头像在浏览器ok,在真机构建的app上就有问题,真机上如果没mask,头像正常,如果加了mask,就不显示头像,显示一个黑色的小方块 201...
来源: Laya_社区 发布时间: 20160802
...nerHTML="<img src='res/atlas/test.png'/>" Laya.stage.addChild(div); } TypeError: Illegal constructor laya.core.js:11687 at Function.getInstance (file:///D:/work/test2/bin/libs/laya.core.js:11687:24) at Function.getInstance (file:///D:/work/test2/bin/libs/lay...
来源: Laya_社区 发布时间: 20190926
...Laya.Sprite() let sprite = new Laya.Sprite() sprite.mask = mask Laya.stage.addChild(sprite) //正方形 sprite.graphics.drawPoly(0, 0, [100, 100, 100, 200, 200, 200, 200, 100], "#ffffff") //一挑粗直线 遮挡正方形的左半部分 mask.graphics.drawLines(0, 0, [100, 150, 150, 150], "#ff0000", ...
来源: Laya_社区 发布时间: 20180224