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

大约有 2,311 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0055 秒)

1811. 使用官方文档中qrcode生成二维码的代码,打包APP后无效 [ 50%]

...", this, this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandler(): void { var url: string = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获取。 this.qrcodeSp.loadImage(url, 0, 0, 1...

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

1812. tween对Text的缩放,为何会抖动呢? [ 50%]

...e.width >> 1, Laya.stage.height >> 1);     Laya.stage.addChild(txt);          Laya.Tween.to(txt, { scaleX: 2, scaleY: 2 }, 5000);   5秒钟把文本放大2倍,感觉是 fontSize在不平滑的增大,显得比较卡,有抖动   目前要达到的效果是...

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

1813. 关于as版的Animation.createFrames()不能工作? [ 50%]

...Images(["war/hero_fly1.png", "war/hero_fly2.png"], "hero_fly"); Laya.stage.addChild(animation); animation.play(0, true, "hero_fly"); } } } 假如使用注释里的LoadImage()则可以 2016-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

1814. 使用mask后,只要调用 Laya.Resource.destroyUnusedResources() 就会引起报错 [ 50%]

....drawRect(0, 0, 200, 200, "#0xFFFF00"); bgSprite.pos(300, 300); Laya.stage.addChild(bgSprite); let mask = new Laya.Sprite(); bgSprite.mask = mask; mask.graphics.drawCircle(0, 0, 100, "0x0000FF"); window.onblur = function() { console.log("onblur....?"); Laya.timer.once(2000, null, function() { Laya.R...

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

1815. animate 动画播放 怎么把攻击 开火 合起来播放 [ 50%]

...this.onLoaded)); } private onLoaded(): void { //添加到舞台 Laya.stage.addChild(this.roleAni); //创建动画模板dizziness Laya.Animation.createFrames(this.aniUrls("die", 4), "die"); Laya.Animation.createFrames(this.aniUrls("fire", 7), "fire"); Laya.Animation.createFrames(this.aniUrls("atk", 3...

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

1816. Mesh模型能否动态合并? [ 50%]

...nqi166 赞同来自:  for (var i=0;i<100;i++) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(xxxx)); //加载材质 layaMonkey.meshRender.material = mat; layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, ...

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

1817. 场景环境反射(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 50%]

...ot-Teapot001.lm", Laya.Handler.create(null, function(mesh){ teapot = scene.addChild(new Laya.MeshSprite3D(mesh)); teapot.transform.position = new Laya.Vector3(0, 1.75, 2); teapot.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); })); //加载纹理 Laya.Texture2D.load("res/threeDimen/pbr/...

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

1818. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 50%]

...s.progressBar.changeHandler = new Handler(this, this.onChange); Laya.stage.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); } private changeValue(): void { if (this.progressBar.value >= 1) this.progressBar.value = 0; this.progressBar.value += 0.05; } private onChange(value: ...

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

1819. laya.d3.core.MeshSprite3D_API3.0 [ 50%]

...ildren parent scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCompo...

来源: Laya3.0_api 发布时间: 20231115

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

...label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } Laya.stage.addChild(label); return label; } })(); ```

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