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

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

1. Byte二进制读写(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 100%]

...script var byte:Byte = new Byte(); var byte1:Byte = new Byte(); byte1.writeFloat32(20.0);//写入一个四个字节的浮点数 byte1.writeInt16(16);//写入一个两个字节的整数 byte1.writeUTFString("hell world");//写入一个字符串; byte.writeArrayBuffer(byte1.buffer,6);//把byte1的...

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

2. Byte二进制读写(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 99%]

...script var byte = new Laya.Byte(); var byte1 = new Laya.Byte(); byte1.writeFloat32(20.0);//写入一个四个字节的浮点数 byte1.writeInt16(16);//写入一个两个字节的整数 byte1.writeUTFString("hell world");//写入一个字符串; byte.writeArrayBuffer(byte1.buffer,6);//把byte1的...

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

3. Byte二进制读写(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 99%]

....Byte = new Laya.Byte(); var byte1:Laya.Byte = new Laya.Byte(); byte1.writeFloat32(20.0);//写入一个四个字节的浮点数 byte1.writeInt16(16);//写入一个两个字节的整数 byte1.writeUTFString("hell world");//写入一个字符串; byte.writeArrayBuffer(byte1.buffer,6);//把byte1的...

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

4. drawMeshInstance渲染指令的使用说明(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 57%]

... 所以我们要传入一个Vector4的数组,或者是Vector4转换好的Float32Array,来设置shader中的CUSTOME0槽位名字为a_InstanceColor的instance属性, 示例代码为: ```typescript //改变900小球的颜色 this.materialBlock.setVectorArray("a_InstanceColor",this.currentColor,...

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