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

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

3571. Cannot find module Roaming\npm\node_modules\layaair2-cmd\layaair2-cmd.js [ 43%]

Cannot find module Roaming\npm\node_modules\layaair2-cmd\layaair2-cmd.js Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\layaair2-cmd\layaair2-cmd.js 1.layaAri2.0 按照官方文档再vscode上安装layaair2-cmd运行layaair2-cmd -v命令出现下面的报错 原...

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

3572. 使用百度地图显示当前位置(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 43%]

...ion(Laya.Handler.create(this, updatePosition), Laya.Handler.create(this, onError)); // 绑定作用域 convertToBaiduCoord = convertToBaiduCoord.bind(this); ``` ​ 由于本例不需要使用LayaAir的显示元素,因此舞台尺寸设置为1。百度地图界面的初始化放在init()中。然...

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

3573. Laya.Socket 是不是不支持Safari浏览器二进制格式的数据传输? [ 43%]

...t.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); } private openHandler(event: any = null): void { //正确建立连接; this.byte.writeByte(1);//写入一个字节 this.byte.writeInt16(20);//写入一个int16的数据 this.byte.writeFloat3...

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

3574. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 43%]

...Laya.VideoNode; Laya.stage.on(Laya.Event.MOUSE_DOWN,this, ()=>{ console.error('Laya.Event.MOUSE_DOWN'); video.play(); }); 很简单的结构,只有在微信上播放不了 1677851971用户 • 2024-03-16 19:56 测试可以播放了,就是手机微信上视频播放明显卡顿,不流畅

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

3575. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 43%]

....getMedia(options, Handler.create(this, onSuccess), Handler.create(this, onError)); } } private function showMessage():void { var text:Text = new Text(); Laya.stage.addChild(text); text.text = "单击舞台播放和暂停"; text.color = "#FFFFFF"; text.fontSize = 100; text.valign = "middle"; text.al...

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

3576. 微信开发者工具,打开Laya发布的包。编译报请先初始化小游戏适配库,详细教程 [ 42%]

...配库,详细教程https://ldc.layabox.com/doc/?nav=zh-ts-5-0-0 console.error @ VM163:1 Browser.__init__ @ code.js:7131 (anonymous) @ code.js:7056 GameEx @ code.js:56322 (anonymous) @ code.js:56681 require @ WAGame.js:3 (anonymous) @ WAGame.js:3 (anonymous) @ game.js? [sm]:2 require @ WAGame.js:3 ...

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

3577. 引擎中的修改意见 [ 42%]

...的听处理函数。 * @param e 事件对象。 */ protected function _onError(e:*):void { error("Request failed Status:" + this._http.status + " text:" + this._http.statusText + e.toString()); } 4、URL中formatURL方法中使用customFormat传入参数有问题, 多了个base public static functi...

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

3578. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 42%]

...chPosition(Handler.create(this, updatePosition), Handler.create(this, onError));   // 绑定convertToBaiduCoord作用域 __JS__("this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this)"); } ``` ​ 由于本例不需要使用LayaAir的显示元素,因此舞台尺寸设置为1。百...

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

3579. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 42%]

..."){ if (url == "scene/Demo_Interiors.ls"){ console.log(data[0]); throw new Error("Scene: the .lh file root type must be Scene,please use other function to load this file."); } }            var innerResouMap=data[1];     Utils3D._createNodeByJson(this,json,this,innerResouMap);     t...

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

3580. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...s,Laya.Handler.create(this,this.onSuccess),Laya.Handler.create(this,this.onError)); } } private showMessage():void{ var tex:Laya.Text = new Laya.Text(); Laya.stage.addChild(tex); tex.text = "单击舞台播放和暂停"; tex.color = "#ffffff"; tex.fontSize = 100; tex.valign = "middle"; tex.align = "...

来源: Laya3.0_文档 发布时间: 20251010