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

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

1. Laya有没有将base64字符串Laya.Byte的方法? [ 100%]

...ublic static function encodeByte(byte:ByteEx, start:int = 0, end:int = -1):String         {             if (end < 0)             {                 end = byte.length;             }             return encode(byte.buffer.slice(s...

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

2. native项目中如何将图片文件的二进制数据成 Texture? [ 95%]

...[buff.buffer], { type:"image/png" } );                 var url:String = Browser.window.URL.createObjectURL(blob);                 Laya.loader.load(url, Handler.create(t, t.onComplete, [params]), null, Loader.IMAGE);   来将二进制文件中的图片文件数据成Textur...

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

3. 服务器websocket c++发送二进制类型包,客户端没有任何事件响应 [ 91%]

...博 QZONE 微信 Zzz18815519 赞同来自: 服务器端        std::string body_str1 = "12345";         std::string outMsg;          wsEncodeFrame(body_str1, outMsg, WS_TEXT_FRAME);//就是加上个2字节头         int32_t send_size = m_socket->send(asio::buffer(outMsg));...

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

4. 如何与服务端建立连接 [ 86%]

...文档,里面有详细的教学,以下代码只作参考用。let host:string = ""; let port:string = ""; let url:string = "ws://" + host + ":" + port; let socket:Laya.Socket = new Laya.Socket(); socket.on(Laya.Event.OPEN,this,()=>{ console.log("connect success!"); }) socket.connectByUrl(url)...

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

5. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 44%]

...ets/Main-dat:yunlong System.IO.Directory.CreateDirectoriesInternal (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:131) System.IO.Directory.CreateDirectory (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System....

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