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

大约有 2,610 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0066 秒)

801. 抛click点击事件报错 [ 71%]

...能抛自定义事件  比如let xx:Laya.Sprite = new Laya.Sprite(); xx.event(Laya.Event.Click);  然后会报错    因为要实现新手引导5秒自动点击功能 所以会抛出一个事件  这个貌似是基本功能 求解答 2018-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

802. laya.ui.Component [ 71%]

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

803. ts项目关闭多点触控 [ 71%]

...-06-14 0 1 分享 微博 QZONE 微信 lrzt 赞同来自: 我设置了 laya.events.MouseManager.multiTouchEnabled = false;没有用啊,还是能多点触控,还需要怎么做? 2018-11-30 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

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

804. 相对布局,重新适应问题 [ 71%]

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

805. 针对2.0.0 beta5 setLoadingPage 做增强 [ 71%]

...ndler otherHandler().then(res => { // 默认进度加1% this._loadScene.event("progress", .01) if (res) param = .concat((param || ), [res]) Laya.Scene.open(url, closeOther, param, complete, progress) }) } /** * 清除loading page */ clearLoadingPage() { this._loadScene = null Laya.Scene.setLoadin...

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

806. 使用webgl之后toDataUrl返回黑色的图像 [ 71%]

...,请参考以下代码 package { import laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var sp:Sprite ; public function LayaAirDemo() { //初始化引擎 Laya.init(Browser.width, Browser.h...

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

807. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 71%]

...c initTemplet(){ this.mFactory = new Laya.Templet(); this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete); // this.mFactory.on(Laya.Event.STOPPED,this,this.parseComplete); this.mFactory.on(Laya.Event.ERROR, this, this.onError); this.mFactory.loadAni("res/games/Game_ddz/animation/ddz_figur...

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

808. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 71%]

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

809. spine 回调函数的参数没有效果 [ 71%]

... 没有改变都是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

810. 分享一个自己做的游戏公告功能,跑马灯效果 [ 71%]

...5,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,this,this.play) } /** 创建滚动区域 */ _createView() { this.hornBox = new Box() let _rectangle = new Laya.Rectangle(0,0,this.defaultX,55) this.hornBox.scrollRect...

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