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

大约有 1,326 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0056 秒)

1221. ComboBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 50%]

...mboBox.selectHandler = new Handler(this, onSelect, [comboBox]); Laya.stage.addChild(comboBox); return comboBox; } function onSelect(cb) { console.log("选中了: " + cb.selectedLabel); } })(); ```

来源: Laya2.0_文档 发布时间: 20210714

1222. vivo小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

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

1223. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 50%]

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

1224. 关于微信小游戏渲染子域图的问题 [ 50%]

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

1225. box2d引擎报错问题 [ 49%]

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

1226. swf转成H5资源显示超出原有范围 [ 49%]

...          content.y = 0;                          addChild(content);             content.play();             setInterval(function(){content.nextFrame()},50)         }     } } 附件 : --> 2017-03-17 添加评论 免费帖 --> 分享 微博 QZONE ...

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

1227. JSON文件加载成功后,怎么解析成Object对象 [ 49%]

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

1228. 两个问题都关于LayaAir的ios真机 [ 49%]

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

1229. Laya.HTMLDivElement解析img标签报错 [ 49%]

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

1230. 关于WebGL矢量图的遮罩问题 [ 49%]

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