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

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

1731. 预设/场景的导出(ActionScript-3D基础(AS3)-LayaAir3D之3D场景可视化编辑) [ 52%]

...ion onComplete(scene:Scene3D):void{ // 将场景加到舞台上 Laya.stage.addChild(scene); } } } ``` 运行效果(图2): ![](img/2.png)(图2)

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

1732. SWF问题,转换了以后我按照示例做了个测试,SWF文件没有显示请帮我看看 [ 52%]

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

1733. 分享:LayaAir下如何获取图集下的小图资源? [ 52%]

...:Sprite=new Sprite(); sp.graphics.drawTexture(texture,200,100); Laya.stage.addChild(sp); } } } 小图路径请参考.json文件的参数 ,直接prefix的值加上小图名称即可获取到   2016-07-07 1 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经...

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

1734. 一个LayaAir moveout target 设计上的疑问? [ 52%]

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

1735. 局部坐标转全局坐标结果与预期相差甚远 [ 52%]

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

1736. 当屏幕尺寸,缩放模式,横竖屏 发生改变时会报错Uncaught TypeError: Cannot read property 'length' of null [ 52%]

...法子给你们还原呢 主要在Laya.stage.destroyChildren();Laya.stage.addChild(new start())后,在切换横竖品就会报错 182*****369 • 2017-08-29 11:51 @182*****369:可以qq私聊嘛

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

1737. spine 播放错乱 [ 52%]

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

1738. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 52%]

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

1739. laya.ui.TextArea_API3.0 [ 52%]

...宽度。 textArea.height = 200;//设置 textArea 的高度。 Laya.stage.addChild(textArea);//将 textArea 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 Laya.loader.load(["resource/ui...

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

1740. 怎么在不同时间显示MovieClip的多个实例 [ 52%]

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