大约有 2,311 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0053 秒)
Laya_社区(1514) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
...eClip = Laya.MovieClip; (function() { var MC = new MovieClip(); Laya.stage.addChild(MC); MC.load("res/atlas/swf/cesi.swf",true); })(); 附件 : --> cesi.zip 2018-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20180330
...:Sprite=new Sprite(); sp.graphics.drawTexture(texture,200,100); Laya.stage.addChild(sp); } } } 小图路径请参考.json文件的参数 ,直接prefix的值加上小图名称即可获取到 2016-07-07 1 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经...
来源: Laya_社区 发布时间: 20160707
...) { sp[j + i * 10] = new Laya.Sprite(); Laya.stage.addChild(sp[j + i * 10]); sp[j + i * 10].graphics.drawRect(0, 0, 50, 50, "black"); sp[j + i * 10].size(50, 50); sp[j + i * 10].pos(i * 60, j * 60); sp[j + i * 10].on(Laya.Event....
来源: Laya_社区 发布时间: 20160715
...了 2018-12-19 0 4 分享 微博 QZONE 微信 LT 赞同来自: Laya.stage.addChild(this); Laya.timer.once(500,this,test); 转坐标放在后面加了个延时执行。。就没问题了。。应该是执行的时候组件还没有全部加进stage。。 2018-12-20 0 0 分享 微博 QZONE 微信 为...
来源: Laya_社区 发布时间: 20181219
...法子给你们还原呢 主要在Laya.stage.destroyChildren();Laya.stage.addChild(new start())后,在切换横竖品就会报错 182*****369 • 2017-08-29 11:51 @182*****369:可以qq私聊嘛
来源: Laya_社区 发布时间: 20170829
...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
...reate(this, function (scene: Scene3D): void { //添加到场景 Laya.stage.addChild(scene); var camera: Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Vector3(8.937199060699333, 61.364798067809126, -66.7783608647265...
来源: Laya2.0_文档 发布时间: 20210714
...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