大约有 2,311 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0055 秒)
Laya_社区(1514) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
...", 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
...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
...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
....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
...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
...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
...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
...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
...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
...label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } Laya.stage.addChild(label); return label; } })(); ```
来源: Laya2.0_文档 发布时间: 20210714