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

大约有 158 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0039 秒)

121. 原生App嵌入Laya做的H5,如何实现数据通讯?? [ 52%]

...发一个小游戏集成到App的聊天界面中去,H5需要从App拿到connect的地址等信息,请问如何互通,急,谢谢! 2017-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_XS 赞同...

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

122. socket大型项目回调 [ 52%]

...} private initWebSocket(host,port,cb:Function):void{ console.log("[Pomelo] connect to:",host,port); this.socket = new Laya.Socket(); //用的子协议,字符串或数组 // this.socket.protocols = egret.WebSocket.TYPE_BINARY; this.socket.on(Laya.Event.OPEN, this, this.onConnect); this.socket.on(La...

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

123. eError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'. [ 52%]

...curl_easy_perform failed和JCFileRes::onDownloadError file error WebSocket connection to 'ws://192.168.0.8:8102/' failed: Invalid frame header /clang:-1: linker command failed with exit code 1 (use -v to see invocation) 求助!华为快游戏发布后报错 Unexpected end of JSON input Failed to l...

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

124. Image.skin = 'https://..../head1.jpg' 报Failed to load:https://..../head1.jpg [ 52%]

...cation failed Uncaught RangeError:Array buffer allocation failed websocket connection failed: Invalid frame header /clang:-1: linker command failed with exit code 1 (use -v to see invocation) web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined Request...

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

125. A星寻路解决方案 [ 51%]

...为0,0(这步不能省略,后边会做详细讲解) 设置长宽为9X9 connections改为four 不可行走节点配置,设置collsion testing Mask为obstacle,且为路障对象添加碰撞体,设置为obstacle层 点击生成数据 导出数据 添加组件 AstartExpLayaTool,点击 exp json(导...

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

126. websocket无法连接 [ 51%]

...我们采用大端 this.socket.endian = Laya.Byte.BIG_ENDIAN; this.socket.connectByUrl("ws://"+host+":"+port+"/hoopster"); //建立连接 this.socket.on(Laya.Event.OPEN, this, onOpen); this.socket.on(Laya.Event.MESSAGE, this, onReceive); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); thi...

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

127. 初学者,LayaAir IDE舞台不显示效果,并提示file: [ 51%]

...tps://schemastore.azurewebsites.net/schemas/json/jsconfig.json': Unable to connect to https://schemastore.azurewebsi ... json. Error: getaddrinfo ENOENT schemastore.azurewebsites.net:443' at: '1,1' source: '' code: 'undefined' 2018-09-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

128. 我实现内购的时候,通过ios原生已经成功购买,弹出alert [ 51%]

...出alert 但是返回打印[IAP] Cannot transmit receipt data. Could not connect to the server.这个,还有回调到js方法里面的参数也显示购买失败,code=-1,请问这是怎么回事 附件 : --> 2018-02-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

129. 用Socket连接服务器,服务端显示已经有登录,但Event.OPEN没有触发 [ 50%]

...t;     import laya.utils.Byte;               public class CConnector extends Socket     {         protected var sendBuf:Byte = null;         protected var recvBuf:Byte = null;                  public function CConnector()         {     ...

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

130. 网络通信 · LayaAir3.0文档 · LAYABOX [ 50%]

...收文本和二进制数据。我们先来了解下 Socket 的用法 3.1.1 Connect 服务器 Socket 连接服务器有三种方式: 方式 说明 构造函数传参 立即连接 比如 new Socket(“192.168.1.2”,8899);注意这里的host参数没有ws前缀。 connect方法 传递url和端口...

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