大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0096 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...AudioChannel.prototype["onPlayAgain"] = function onPlayAgain(): void { if (this._ele == null) { console.warn(`HTMLAudioChannel.onPlayAgain _ele is null, url=${this.url}`); return; } return window["Laya.HTMLAudioChannel.onPlayAgain"].call(this); } 你可以试试暂时重写这个方法 等修复了...
来源: Laya_社区 发布时间: 20251014
...d回调方法 Laya.loader.load("res/atlas/apes.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 plan.crashed.play(); }运行时发现ui变量不存在...
来源: Laya_社区 发布时间: 20190217
... hr = new HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send(NameJosn, null, 'get',...
来源: Laya_社区 发布时间: 20160626
...讨论,修改了laya.core.js里面 value && (value._addReference(this._referenceCount)); =》 if(value && value._addReference){ value._addReference(this._referenceCount) } 又报:this._bitmap._addReference is not a function 同上依次改之。 不报错之后,开发域...
来源: Laya_社区 发布时间: 20181222
...怎么把接受的数据decode为message-------- socket.on(Event.MESSAGE,this,this.onMessageReceived); private onMessageReceived(msg:any):void { //received data from server var byte:Byte=new Byte(); byte.writeArrayBuffer(msg); byte.pos=0; byte.endian=Socket.BIG_ENDIAN; //拆包开始 :依旧是len...
来源: Laya_社区 发布时间: 20171113
...DOWN, () => { Laya.loader.load("resources/layaAir.mp4").then(() => { this.video.play(); //播放视频 }); }) } } 如果是在LayaAir IDE中运行,则VideoNode无需通过事件触发播放。但是在Chrome中,自动播放只允许静音自动播放。只有用户进行交互(单击、...
来源: Laya3.0_文档 发布时间: 20251010
...用呢? 我已经设置了button的Var 为bt1,在项目代码中写 this.bt1,会提示没有bt1 我在场景编辑器中按f12导出,在项目代码中写 this.bt1,还是会提示没有bt1。我下载了微信飞机ts版本,看了下人家的项目代码里输入this.bg1是完全...
来源: Laya_社区 发布时间: 20191107
...rray就找不到呢, 同理按照文档写 现在我的js也代码截图 this.m_list.scrollBar.hide = true;//隐藏列表的滚动条。 提示我scrollBar找不到。 附件 : --> 2018-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20180323
..."]; ape.loadImage("../laya/assets/res/to1.png",0,0,0,0,Laya.Handler.create(this,graphicsImg,ag)); graphicsImg(ag); } function graphicsImg(args) { console.log(args); } //loadImage 的回调函数只传递出来了第一个参数 //输出结果是 [lsd, Sprite, 1, str] lsd 2018-05-10 添加评...
来源: Laya_社区 发布时间: 20180510
...api将数据绘制到 透明的 wx.sharedCanvas中。 伪代码如下: this.sharedCanvasContext.drawImage(...) this.sharedCanvasContext.fillText(...) 然后主域这边将sharedCanvas的内容绘制到主屏幕,伪代码如下: var myTexture = new Laya.Texture(sharedCanvas) myTexture.bitm...
来源: Laya_社区 发布时间: 20180419