大约有 2,550 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0176 秒)
Laya_社区(1924) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(49)
... = 0,right=0,bottom=0) 变化,必须手动监听Laya.stage.on(Laya.Event.RESIZE,,)来二次适配吗 // this.imgBG.left = 0 ; // this.imgBG.right = 0 ; // this.imgBG.top = 0 ; // this.imgBG.bottom = 0 ; 还有一个就是 layoutEnabled 属性 在什么情况用! 2017-09-18 添...
来源: Laya_社区 发布时间: 20170918
... 没有改变都是0,spine 输出文件见附件 sk_timelimit.on(Laya.Event.LABEL,this,this.animLabel); private animLabel(data:any) { } var str = "readyGO1"; sk_view.sk_timelimit.play(str,false); 附件 : --> 归档.zip 2018-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180531
...ileMgr.filesListObj[sourceUrl]; thisLoader.event(Laya.Event.ERROR, "Load image failed"); }; 附件 : --> 2020-04-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 ...
来源: Laya_社区 发布时间: 20200427
...eying • 2017-01-18 12:21 再图片加载完成后,可以先侦听一个Event.LOADED事件,再回调里去获取getBounds值 qq502416708 • 2017-01-18 15:32 能写几句示例吗?图片是网络传过来的用户头像 cuixueying • 2017-01-19 15:38 就是获取你图片所在容器的getBo...
来源: Laya_社区 发布时间: 20170118
...l Classes | Index | Frames No Frames ComponentProperties | Methods | Events Packagelaya.uiClasspublic class ComponentInheritanceComponent Sprite Node EventDispatcher ObjectImplements IComponentSubclasses Box, Button, Clip, ColorPicker, ComboBox, Image, Label, ProgressBar, ScrollBar, Slider, T...
来源: laya_api 发布时间: 20170929
...l Classes | Index | Frames No Frames SpotLightProperties | Methods | Events Packagelaya.d3.core.lightClasspublic class SpotLightInheritanceSpotLight LightSprite Sprite3D Node EventDispatcher Object SpotLight 类用于创建聚光。 Public Properties Hide Inherited Public Properties Show Inhe...
来源: Laya2.0_api 发布时间: 20190513
JS版派发自定义事件出错。 随便用一个类继承EventDispatcher, 然后注册个自定义type的事件,再抛出,出错 ---------------------------------- __proto.event 方法中 if (listener) { (data != null) ? listener.runWith(data) : listener.run(); } 出错,原因listener.me...
来源: Laya_社区 发布时间: 20170120
... SpineTempletBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError) } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos...
来源: Laya2.0_文档 发布时间: 20210715
...var a = new Laya.Box(); a.left = a.top = a.right = a.bottom = 0; a.on(Laya.Event.RESIZE, this, () => { console.warn(" resize ===== "); }) Laya.stage.addChild(a); Laya.timer.loop(1000, this, () => { a.addChild(new Laya.Box()); }); --------------- 测试代码如上,每1s会回调一次控件 ...
来源: Laya_社区 发布时间: 20181214
...相关的链接 提交 2 个回复 sfg007 赞同来自: onkeydown(e: Laya.Event): void{ console.log(e.keyCode); if(e.keyCode==37){//左 this.hero.pos(this.hero.x-100,this.hero.y); }else if(e.keyCode==39){/...
来源: Laya_社区 发布时间: 20161015