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

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

81. 在加载swf动画之后在封装的里面报错了 , 用的官网的例子 [ 67%]

...: string = "res/example1.swf";   就只有这里改了   /**     *从字节流的当前字节偏移量位置处读取一个 Int16 值。     *@return Int16 值。     */     __proto.getInt16=function(){         if (this._pos_+2 > this._length)throw "getInt16 error - Out ...

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

82. laya.d3.math.Rand_API3.0 [ 67%]

...in laya/d3/math/Rand.ts:20 通过无符号32位整形,获取无符号8位字节随机数。 Parameters v: number Returns number 无符号8位字节随机数。 Static getFloatFromInt getFloatFromInt(v: number): number Defined in laya/d3/math/Rand.ts:10 通过无符号32位整形,获取32位浮...

来源: Laya3.0_api 发布时间: 20231115

83. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 65%]

...片等资源进行加密。所谓的加密就是打乱资源本来的存储字节,或者穿插一些东西。但是到了html5时代,发现基本都是直接加载的图片,为什么和页游时代做法不一样了呢?是不是html5不能加载解码二进制图片?当然不是。之所...

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

84. laya.filters.ColorFilter [ 64%]

...从 Sprite 类继承的对象)。 注意:对于 RGBA 值,最高有效字节代表红色通道值,其后的有效字节分别代表绿色、蓝色和 Alpha 通道值。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By _filter : Function[...

来源: Laya2.0_api 发布时间: 20190513

85. 我用laya.websocket通信 二进制数据, 服务器对二进制数据进行解析,解析出来不是预期,请问我哪里写错了? 代码如下 [ 64%]

... 1 个回复 moketao 赞同来自: 这是要多节省带宽资源才一个字节一个字节的自己写。。。 建议还是用 protobuf 压缩率未必比自己写的差。 2017-07-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ko...

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

86. httpRequest send返回Request failed Status:0 [ 64%]

...据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //......解密逻辑开始处理数据 var byte = new Laya.Byte(data); //Byte数组接收arraybuffer // byte.writeArrayBuffer(data,4);//从第四个字节开始读取数据 var blob = new Laya.Browser.window.B...

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

87. websocket 中 protobuf 数据的发送与接收的具体方法是怎样的? [ 64%]

...; byte.writeInt32(MSG_HEADER.LoginGame);//和服务端约定好,前四个字节存放协议的名称 var login:any = new pack.LoginGame; login.set("account",""); login.set("passwd",""); var buffer:any = login.encode().toBuffer(); byte.writeArrayBuffer(buffer); this.socket.socket.flush(); }请问...

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

88. 在native下 Laya.Browser.window.Blob不存在 [ 62%]

...据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //.......解密逻辑开始处理数据。 // var byte = new Laya.Byte(data);//Byte数组接收arraybuffer // byte.writeArrayBuffer(data, 0);//从第四个字节开始读取数据 // var blob = new Laya.Browse...

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

89. laya.d3.graphics.IndexBuffer3D [ 62%]

...。 IndexBuffer3D  indexTypeByteCount : int[read-only] 获取索引类型字节数量。 IndexBuffer3DProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties PropertyDefined By _buffer : *Buffer _bufferType : intBuffer _bufferUsage : intBuffer _glBuffer : ...

来源: Laya2.0_api 发布时间: 20190513

90. laya.utils.Stat [ 62%]

...tMemorySize : int[static] 资源管理器所管理资源的累计内存,以字节为单位。Stat  drawCall : int = 0[static] 描绘次数。Stat  FPS : int = 0[static] 每秒帧数。Stat  loopCount : int = 0[static] 主舞台 Stage 渲染次数计数。 Stat  onclick : Function[static] [wr...

来源: laya_api 发布时间: 20170929