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

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

351. spine动画放大后,遮罩显示不正常 [ 52%]

...     let mFactory = new Templet();         mFactory.on(Event.COMPLETE, this, this.parseComplete,[parent,mFactory]);         mFactory.on(Event.ERROR, this, this.onError);         mFactory.loadAni(path);     }      onError() {         trace("error");   ...

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

352. 如何在layaair 上使用get方法的xml ,获得节点属性? [ 52%]

...PROGRESS, this, onHttpRequestProgress);             hr.once(Event.COMPLETE, this, onHttpRequestComplete);             hr.once(Event.ERROR, this, onHttpRequestError);             hr.send(NameJosn, null, 'get', 'xml');               function method():void       ...

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

353. android native环境,ttfloader加载的字体,设置无效果! [ 52%]

...失败ubuntu-bold.ttf");             });             ttfloader.complete = Laya.Handler.create(this, () => {                                 let txt = new Laya.Text();                 txt.text = "hello world!";                 txt.font = "ubuntu";     ...

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

354. 【2.0】3d骨骼绑定问题。多次绑定移除会导致动画停止。demo上传了 [ 52%]

...?因为同是加载多个相同的模型对象 第一个显示不出来,complete执行了,奇了怪了 2019-01-27 0 0 分享 微博 QZONE 微信  赞同来自: 你的代码写的有点乱  我就单独给你改了一个动画挂点去挂点的例子    检验过是好的  你还用了内...

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

355. laya.display.Graphics [ 52%]

...l:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Function = null):void 加载并显示一个图片。 Graphics  restore():void 返回之前保存过的路径状态和属性。 Graphics  rotate(angle:Number, pivotX:Number = 0, pivotY:Number = 0):void 旋转当...

来源: laya_api 发布时间: 20170929

356. 我二进制资源load之后,为什么通过getRes获取不到。 [ 52%]

...戏有个loading页面 我通过load方法把资源全部load之后,在complete方法中通过getRes方法获取不到。部分代码如下: var resources = [ { url: "res/atlas/images/guide.atlas", type: Laya.Loader.ATLAS }, { url: "config/data.txt", type: Laya.Loader.BUFFER }]; Laya.loader.load...

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

357. 解析sk资源报错 [ 52%]

...      _templet = new Templet();             _templet.on(Event.COMPLETE,this,parseComplete);             _templet.on(Event.ERROR,this,onError);             _templet.loadAni("res/role/1/left/left.sk");         }                  private function parseCo...

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

358. Clip组件Bug:Play方法无法结束循环 [ 52%]

...erval = interval;         }          this.on(Laya.Event.COMPLETE, this, () => {             this.destroy();         });         this.frameIndex = 0;         isLoop ? this.toFrameIndex = -1 : this.toFrameIndex = (cols * rows -...

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

359. web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined [ 52%]

...的链接 提交 2 个回复 金风 赞同来自: this.xhr.once(Laya.Event.COMPLETE, this, this.CompleteHandler); this.xhr.once(Laya.Event.ERROR, this, this.ErrorHandler); this.xhr.on(Laya.Event.PROGRESS, this, this.ProgressHandler); this.xhr.send(Global.WebHost+this.currentRequest.url, this.current...

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

360. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 52%]

...= new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(data:Object):void{ //加载完成返回的data是arraybuffer; /...

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