大约有 708 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)
Laya_社区(372) Laya3.0_api(110) Laya2.0_api(105) laya_api(67) Laya2.0_文档(26) Laya2.0_示例(10) Laya3.0_文档(9) Laya_示例(9)
...了,可以通过加一个延迟函数进行处理抑或添加一个Event.COMPLETE函数。 参考如下: 第二个问题:this.body和this.hero的区别 this.body是Role类下的animation实例:是个Animation this.hero是Role类的实例:是个Sprite(因为Role继承自Sprite) 第三...
来源: Laya_社区 发布时间: 20160729
...erial cloneTo(destObject:*):void 克隆。 BaseMaterial load(url:String, complete:Handler):void[static] 加载材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods MethodD...
来源: Laya2.0_api 发布时间: 20190513
...ame); animator.on(Event.STOPPED, this, this.removeClip); animator.on(Event.COMPLETE, this, this.removeClip); animator.play("runShoot"); 2018-07-26 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个要在unity 里面进行切片,从那一帧开始切,然后用切片的名字播放 201...
来源: Laya_社区 发布时间: 20180725
...var req = new laya.net.HttpRequest(); req.on(laya.events.Event.COMPLETE, this, cb_onSuccess); req.on(laya.events.Event.ERROR, this, cb_onFail); req.send(url); } // 下载jpg图片成功后,显示在舞台上,response为 bmp图片二进制 ...
来源: Laya_社区 发布时间: 20170103
...,先加载swf的图片资源,并且把swf资源全部load一遍,用complete监听作为加载完成的判断,并且不清理资源,达到类似预加载的效果。但是不太建议这样做,性能很差,特别是swf大量的时候,特别体现在手机上。建议使用图集,或...
来源: Laya_社区 发布时间: 20170522
...l:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null) 官方文档也是这么用的:http://ldc.layabox.com/doc/?nav=zh-ts-1-3-2 我把文档的代码完整复制到vscode里,vs code会报错。IDE F6 运行也编译报错。 2020-05-22 添加评论 ...
来源: Laya_社区 发布时间: 20200522
...e(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; apesCtn.width = 3248; this.tl.pivot(-1624,-750); }, 2019-01...
来源: Laya_社区 发布时间: 20190117
...); this.templet.loadAni("spine/10101001.json"); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos...
来源: Laya_社区 发布时间: 20210813
...现为:不能成功载入场景(引擎没有调用场景载入完毕的complete回调) PC版微信的内置浏览器不知如何调试,只能反馈给LAYA官方了 =============补充,定位到了,BUG或兼容性改进=========== 1、手动载入.lani,用 alert 一步步定位 ...
来源: Laya_社区 发布时间: 20180410
...件类型是否是鼠标事件。 EventDispatcher loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改动:多次调用,只会显示一个图片(1.0会显示多个图片),x,y,width,height参数取...
来源: Laya2.0_api 发布时间: 20190513