大约有 324 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
Laya_社区(266) Laya2.0_文档(18) Laya3.0_文档(8) Laya2.0_示例(8) Laya_示例(7) Laya3.0_api(7) laya_api(5) Laya2.0_api(5)
...position或者scale 微信小游戏如何使用ttf字体? Ts 编辑提示error TS5023: Unknown option 'p' 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. LayaAirIDE下如何使用mask? 编译调试启动chrome出现错误: Error processing launch: Error Could not at...
来源: Laya_社区 发布时间: 20180828
...正常Chrome F12手机模式调试播放报laya.core.js:906 Uncaught TypeError: Failed to execute 'bindTexture' on 'WebGL2RenderingContext': parameter 2 is not of type 'WebGLTexture'. 代码如下:// 创建video对象 let videoElement = new Laya.Video(); videoElement.x = 0; videoElement.y = 0; vid...
来源: Laya_社区 发布时间: 20200722
...socket.on(Laya.Event.CLOSE, this, closeHandler); this.socket.on(Laya.Event.ERROR, this, errorHandler); function openHandler(event){ //正确建立连接; console.log("链接"); } function receiveHandler(msg){ ///接收到数据触发函数 console.log("接受"); } function closeHandler(e){ //关...
来源: Laya_社区 发布时间: 20180125
SoundManager的兼容性问题 play sound error!InvalidAccessError: Failed to execute 'setTargetAtTime' on 'AudioParam': Time constant must be a finite positive number: 0","channel":"error","stack":{"hash":"7d3c8a0d876bf167157fe044b73f4d88","error":"Error\n at Function.i.error \n at e.pla...
来源: Laya_社区 发布时间: 20180902
...hrome调试可以成功播放出音乐,但是控制台还是会出错。 Error: DOMException: Failed to load because no supported source was found. Error: DOMException: The element has no supported sources. at AudioSound._makeMusicOK (file:///D:/%E9%A1%B9%E7%9B%AE/%E6%B1%A4%E8%BF%9C%E5%8D%8E/dia...
来源: Laya_社区 发布时间: 20181111
TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' 使用1.7.15或16,在项目总增加如下几句,在layaAir内测试可以正常(以下资源是拷贝自GitHub上官网的范例包下的资源: // 创建天空盒 var skyBox:Laya.SkyBox = new Laya.SkyBox(); //清除标...
来源: Laya_社区 发布时间: 20180307
...收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必须的,这也是我们处理网络消息的前提。 新建一个LayaAir空项目。声明一个Socket实例,声明一个Byte实例: ```typescript class ...
来源: Laya2.0_文档 发布时间: 20210714
...目使用matter.js库无智能提示 编译调试启动chrome出现错误: Error processing launch: Error Could not attach to main target 微信小游戏:HTMLDivElement的使用 请问在layaIDE里,怎么调用微信小程序API 如何实现微信登录? Ts 编辑提示error TS5023: Unknown op...
来源: Laya_社区 发布时间: 20180512
...his.on(Event.MESSAGE, this, OnRecv); this.on(Event.ERROR, this, OnError); } public function OnConnected(e:*=null):void { trace('OnConnected'); } ...
来源: Laya_社区 发布时间: 20170920
...收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必要的,这也是我们处理网络消息的前提。 这里我们用AS项目进行讲解,新建一个LayaAir的空项目。声明一个Socket的实例...
来源: Laya2.0_文档 发布时间: 20210715