大约有 87 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0028 秒)
Laya_社区(41) Laya3.0_api(19) Laya2.0_文档(8) Laya2.0_api(8) laya_api(5) Laya3.0_文档(4) Laya2.0_示例(1) Laya_示例(1)
...; this.ensureWrite(this._pos_+length); var uint8array=new Uint8Array(arraybuffer); this._u8d_.set(uint8array.subarray(offset,offset+length),this._pos_); this._pos_+=length; } 这里arraybuffer 是一个ByteArray,运行var uint...
来源: Laya_社区 发布时间: 20180328
...Generator haloTexture(x:int, y:int, maxX:int, maxY:int, index:int, data:Uint8Array):void[static] TextureGenerator lightAttenTexture(x:int, y:int, maxX:int, maxY:int, index:int, data:Uint8Array):void[static] TextureGeneratorConstructor DetailTextureGenerator()Constructorpublic function TextureG...
来源: Laya2.0_api 发布时间: 20190513
...erify(message); if (errMsg) throw Error(errMsg); // Encode a message to an Uint8Array (browser) or Buffer (node) var buffer = AwesomeMessage.encode(message).finish(); // ... do something with buffer // Or, encode a plain object var buffer = AwesomeMessage.encode( { awesomeField: "AwesomeString" }).f...
来源: Laya_示例 发布时间: 20241117
...erify(message); if (errMsg) throw Error(errMsg); // Encode a message to an Uint8Array (browser) or Buffer (node) var buffer = AwesomeMessage.encode(message).finish(); // ... do something with buffer // Or, encode a plain object var buffer = AwesomeMessage.encode( { awesomeField: "AwesomeString" }).f...
来源: Laya2.0_示例 发布时间: 20241117
...Mipmap():void 通过基础数据生成mipMap。 BaseTexture getPixels():Uint8Array 返回图片像素。 Texture2D load(url:String, complete:Handler):void[static] 加载Texture2D。 Texture2D loadImageSource(source:*, premultiplyAlpha:Boolean = false):void 通过图片源填充纹理,可为...
来源: Laya2.0_api 发布时间: 20190513
...is.getChildByName("waken") as Laya.Image; var imageSprite:Laya.Sprite; var uint8Array:Uint8Array = imageNode.source.bitmap.getPixels(); //console.log("0000000000000 == " + uint8Array.length); imageNode.source.bitmap.setPixels(uint8Array,0); 附件 : --> 2019-09-23 3 条评论 悬赏 --> 分享 ...
来源: Laya_社区 发布时间: 20190923
...d By alphaMap : Vector.<String>ChunkInfo detailID : Vector.<Uint8Array>ChunkInfo normalMap : StringChunkInfoPublic Methods MethodDefined By ChunkInfo()ChunkInfoProperty DetailalphaMappropertypublic var alphaMap:Vector.<String>detailIDproperty public var detailID:Vect...
来源: Laya2.0_api 发布时间: 20190513
...aseTexture getData(x:Number, y:Number, width:Number, height:Number, out:Uint8Array):Uint8Array 获得像素数据。 RenderTexture getDataAsync(x:Number, y:Number, width:Number, height:Number, callBack:Function):void native多线程 RenderTexture getTemporary(width:Number, height:Number, fo...
来源: Laya2.0_api 发布时间: 20190513
...机渲染目标的像素数据,默认renderTarget的颜色为RGBA var out:Uint8Array = new Uint8Array(2048*2048*4); renderTargetCamera.renderTarget.getData(0, 0, 2048, 2048, out); //设置纹理的填充像素像素 tex.setPixels(out); ``` 在开始渲染后,我们调整视角就可以看到拍照...
来源: Laya2.0_文档 发布时间: 20210714
...弟 用法 var zlib:* = __JS__("Zlib"); var inflate = new zlib.Inflate(new Uint8Array(rawData)); var plain:Uint8Array = inflate.decompress(); var ba:Byte = new Byte(plain); ba.pos = 0; ba.endian = Byte.BIG_ENDIAN;//根据自身情况写 lib.rar 2018-05-05 0 1 分享 微博 QZONE 微信 Meng℡ 赞...
来源: Laya_社区 发布时间: 20180505