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

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

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

...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

12. 设置transform.localRotation之后,就不能再使用transform.rotate了 [ 85%]

...                           //世界矩阵 Matrix4x4elements: Float32Array[16]0: 0.85106498003005981: 02: 03: 04: 05: 0.85106498003005986: 07: 08: 09: 010: 0.851064980030059811: 012: 331.600006103515613: -5.099999944384835e-1414: -3.03830003738403315: 1buffer: (...)byteLength: (...)byteO...

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

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

...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

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

....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

15. 2.0 添加场景雾之后 粒子特效离原点越远 效果越淡 [ 84%]

...7 赞同来自: 零下的孤單 ps="#ifdef HIGHPRECISION\n precision highp float;\n#else\n precision mediump float;\n#endif\n\nvarying float v_Discard;\nvarying vec4 v_Color;\nvarying vec2 v_TextureCoordinate;\nuniform sampler2D u_texture;\nuniform vec4 u_Tintcolor;\n\n#ifdef RENDERMODE_MESH\n  va...

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

16. laya.ani.bone.canvasmesh.SkinMeshForGraphic_API3.0 [ 83%]

...Defined in laya/ani/bone/canvasmesh/MeshData.ts:33 uv变换矩阵 uvs uvs: Float32Array = new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]) Inherited from MeshData.uvs Defined in laya/ani/bone/canvasmesh/MeshData.ts:18 uv数据 vertices vertices: Float32Array = new Float32Array([0, 0, 100, 0, 100, 100, 0, ...

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

17. laya.d3.utils.Picker [ 81%]

...射线。 Picker  rayIntersectsPositionsAndIndices(ray:Ray, vertexDatas:Float32Array, vertexDeclaration:VertexDeclaration, indices:Uint16Array, outHitInfo:RaycastHit):Boolean[static] 计算射线和三角形碰撞并返回碰撞三角形和碰撞距离。 Picker  rayIntersectsTriangle(ray:Ray, v...

来源: laya_api 发布时间: 20170929

18. socket大型项目回调 [ 80%]

... { uInt32 : 0, sInt32 : 0, int32 : 0, double : 1, string : 2, message : 2, float : 5 }; private static _clients:any = {}; private static _servers:any = {}; static init(protos:any):void{ this._clients = protos && protos.client || {}; this._servers = protos && protos.server || {}; } st...

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

19. 关于要自定shader的同学 [ 80%]

... _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.color = [4, Laya.WebGLContext.FLOAT, false, _vlen, 4 * Laya.CONST3D2D.BYTES_PE] } }// 关于修改shader内...

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

20. Laya中使用shader的问题 [ 79%]

...: uniform vec3 iResolution; // viewport resolution (in pixels)  uniform float iGlobalTime; // shader playback time (in seconds)  uniform float iTimeDelta; // render time (in seconds)  uniform int iFrame; // shader playback frame  uniform float iChannelTime[4]; // channel playback time (in seco...

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