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

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

421. laya.d3.core.material.SkyProceduralMaterial [ 47%]

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

422. laya.ani.bone.Skeleton [ 47%]

...事件类型是否是鼠标事件。 EventDispatcher  load(path:String, complete:Handler = null, aniMode:int = 0):void 通过加载直接创建动画 Skeleton loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意...

来源: Laya2.0_api 发布时间: 20190513

423. 请问我用下面的代码发送个简单的http get请求,为什么在电脑上能得到成功输出,在手机上总是得到失败输出呢? [ 47%]

...l=" + url); var req = new laya.net.HttpRequest(); req.on(laya.events.Event.COMPLETE, null, cb_onSuccess); req.on(laya.events.Event.ERROR, null, cb_onFail); req.send(url); } function cb_onSuccess(response) { alert("response=" + response); // 成功输出:{"ret":1478136071} } function cb_onFail(mess...

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

424. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 47%]

...let = new Laya.SpineTemplet(Laya.SpineVersion.v4_0); templet.on(Laya.Event.COMPLETE, handler.caller, handler.method); templet.on(Laya.Event.ERROR, this, this.printError); templet.loadAni(url); }  printError(e) { console.error(e); } } //激活启动类 new Main(); 附件 : --> TEST2.zip 2022-05-30 ...

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

425. box2d引擎报错问题 [ 47%]

...= new Laya.Animation(); ani.loadAnimation("catFly.ani"); ani.on(Laya.Event.COMPLETE, null, recover); function recover(): void { ani.removeSelf(); Laya.Pool.recover("deathEffect", ani); } return ani; } 附件 : --> 2019-10-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

426. 关于Laya.loader.load和getRes的问题 [ 47%]

...的参数说明中,看到第二个参数是这么解释的: * @param complete    加载结束回调。根据url类型不同分为2种情况:1. url为String类型,也就是单个资源地址,如果加载成功,则回调参数值为加载完成的资源,否则为null;2. url为数...

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

427. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 46%]

...tionDomain.currentDomain); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onSwfLoaded); loader.load(new URLRequest("binarys.swf"),context); } protected function onSwfLoaded(event:Event):void { // TODO Auto-generated method stub var mc:MovieClip=event.target.content as MovieClip; mc.play();...

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

428. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 46%]

...动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("comp/skeleton/spineboy.sk"); } protected onExit() {}; private onError() { console.log("parse error"); } private...

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

429. laya animation播放图片集合,切换时会闪烁一下 [ 46%]

...分享 微博 QZONE 微信 风信子 赞同来自: 没看懂,但是你的complete写在play后面不太好吧,闪烁可能是执行了多遍,后面的覆盖前面,看起来就闪烁,你是loop到底是了什么也不知道 2019-03-25 0 4 分享 微博 QZONE 微信 kura 赞同来自: https:...

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

430. 在native下 Laya.Browser.window.Blob不存在 [ 46%]

...est: function (ss) { var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, completeHandler); xhr.once(Laya.Event.ERROR, this, errorHandler); xhr.send("http://192.168.10.108:35553/re ... ot%3B, "", "get", "arraybuffer"); function completeHandler(data) { //加载完成返回的data是a...

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