大约有 1,326 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0053 秒)
...ext.borderColor="0xffffff"; text.text="3"; Laya.stage..addChild(text); //看看是什么原因造成不是注册中心点在设置的坐标点上 daohu • 2016-06-22 17:19 @cuixueying 你好,有时间再帮忙看下哦,谢谢,问题没有解决 Monica • 2016-06-23 11:43 ...
来源: Laya_社区 发布时间: 20160617
...omplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Laya.Browser.width / 2, Laya.Browser.height / 2 + 100); //this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); } private onError() { con...
来源: Laya_社区 发布时间: 20210813
...keleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton); this.skeleton.pos( this.pageWidth / 2, this.pageHeight / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); }); } private play(): void { if (+...
来源: Laya_社区 发布时间: 20230703
... = Laya.stage.width/2; ani_planet.load("1.swf",true); ani_planet.y = i*50; addChild(ani_planet); i++; } 以上代码执行后生成一个新的MovieClip实例,然而会把旧的MovieCip销毁掉,要怎么解决这个问题,求指教! 2018-05-31 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180531
... new Sprite(); grayApe.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(grayApe); grayApe.filters = [grayscaleFilter];如果一批图片 只要是 grayApe Sprite 的 子对象 这样都可以的! 2017-06-15 0 1 分享 微博 QZONE 微信 devilsome 赞同来自: 如果sprite下...
来源: Laya_社区 发布时间: 20170615
...(3).png"); //设置位置 img.pos(165, 62.5); //加载到舞台 Laya.stage.addChild(img); } } } ```
来源: 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
....Scene.load("res/scene/LayaScene_cz1/cz1.ls"); Laya.stage.addChild(scene); } } new LayaAir3D(); 2017-12-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 liuzhengcai 相关问题 发起问题须知,必看!...
来源: Laya_社区 发布时间: 20171205
...age = new Laya.Image(this.aUrl); aImg.scaleX = aImg.scaleY = 2; Laya.stage.addChild(aImg); aImg.mouseEnabled = false; this.aImg = aImg; } //清除目标纹理的像素 let _sourceTex:Laya.Texture = Laya.Loader.getRes(this.aUrl); let ret = new Uint8Array(_sourceTex.width * _sourceTex.height * 4); let...
来源: Laya_社区 发布时间: 20230328
...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