大约有 192 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0031 秒)
Laya_社区(77) Laya3.0_api(41) Laya2.0_api(29) laya_api(23) Laya2.0_文档(11) Laya3.0_文档(9) Laya2.0_示例(1) Laya_示例(1)
...0: this.skip(); break; case 1: this.skip(8); break; case 2: this.skip(this.uint32()); break; case 3: do { // eslint-disable-line no-constant-condition if ((wireType = this.uint32() & 7) === 4) break; this.skipType(wireType); } while (true); break; case 5: this.skip(4); break; /* istanbul ignor...
来源: Laya_社区 发布时间: 20191202
...。 Texture getPixels(x:Number, y:Number, width:Number, height:Number):Uint8Array 获取Texture上的某个区域的像素点 Texture getTexturePixels(x:Number, y:Number, width:Number, height:Number):Uint8ArrayTexture hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特...
来源: Laya2.0_api 发布时间: 20190513
...getInt8(4),view.getInt8(5),view.getInt8(6));// -28 -67 -96 console.log(new Uint8Array(view.buffer));//Uint8Array(7) [0, 0, 0, 3, 228, 189, 160] 怎么解析成汉字呢,还有为什么得到的数据也是不一样的呢 2018-03-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180302
...irection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void Defined in laya/d3/core/particleShuriKen/module/shape/BaseShape.ts:54 用于生成粒子初始位置和方向。 Parameters position: Vector3 粒子位置。 direction: Vector3 粒子方向。 Default value...
来源: Laya3.0_api 发布时间: 20231115
...equest了 畏语愁眸 • 2020-07-03 19:27 再比如最底下的那行new Uint8Array,我觉得可以完全用成员_u8Array赖替代,没必要每帧都new会产生没必要的gc 畏语愁眸 • 2020-07-03 17:45 最底下那行是不是每帧都要new Uint8Array?
来源: Laya_社区 发布时间: 20200703
...tructor Properties seeds Accessors seed Methods getFloat getSignedFloat getUint getByteFromInt getFloatFromInt Constructors constructor new Rand(seed: number): Rand Defined in laya/d3/math/Rand.ts:48 创建一个 Rand 实例。 Parameters seed: number 32位无符号整型随机种子。 Returns Rand...
来源: Laya3.0_api 发布时间: 20231115
...or3ArrayToVector3ArrayCoordinate transformVector3ArrayToVector3ArrayNormal uint8ArrayToArrayBuffer Properties Static _tempV0 _tempV0: Vector3 = new Vector3() Defined in laya/d3/utils/Utils3D.ts:153 Static _tempV1 _tempV1: Vector3 = new Vector3() Defined in laya/d3/utils/Utils3D.ts:154 Methods Static...
来源: Laya3.0_api 发布时间: 20231115
...= new Float32Array((numSegments + 1) * 5); // 索引数组 let index = new Uint16Array((numSegments + 1) * 3); var pos = 0; // 生成圆周上的顶点 for (let i = 0; i < numSegments; i++, pos += 5) { const angle = twoPi * i / numSegments; // 计算顶点坐标 var x = vertexs[pos + 0] = radius ...
来源: Laya3.0_文档 发布时间: 20251120
... = (Laya.WebGLContext as any).mainContext; let pixels:Uint8Array = new Uint8Array(gl.drawingBufferWidth*gl.drawingBufferHeight*4); gl.readPixels(0,0,gl.drawingBufferWidth,gl.drawingBufferHeight,gl.RGBA,gl.UNSIGNED_BYTE,pixels); let sp:Laya.Spr...
来源: Laya_社区 发布时间: 20200815
...:Boolean = true) 创建一个 Texture2D 实例。 Texture2D getPixels():Uint8Array 返回图片像素。 Texture2D load(url:String):Texture2D[static] 加载Texture2D。 Texture2D onAsynLoaded(url:String, data:*, params:Array):void[override] private Texture2DProtected Methods MethodDefined...
来源: laya_api 发布时间: 20170929