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

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

31. laya.resource.Texture [ 74%]

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

32. Laya Core内存泄漏 [ 73%]

...equest了 畏语愁眸 • 2020-07-03 19:27 再比如最底下的那行new Uint8Array,我觉得可以完全用成员_u8Array赖替代,没必要每帧都new会产生没必要的gc 畏语愁眸 • 2020-07-03 17:45 最底下那行是不是每帧都要new Uint8Array?

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

33. laya.d3.renderobjs.nativeobj.NativeIndexBuffer3D_API3.0 [ 73%]

...tiveIndexBuffer3D Properties _buffer _buffer: Float32Array | Uint16Array | Uint8Array | Uint32Array Inherited from Buffer._buffer Defined in laya/RenderEngine/Buffer.ts:8 _bufferType _bufferType: number Inherited from Buffer._bufferType Defined in laya/RenderEngine/Buffer.ts:10 _bufferUsage _bufferU...

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

34. laya.d3.utils.Utils3D_API3.0 [ 73%]

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

35. laya.d3.renderobjs.nativeobj.NativeVertexBuffer3D_API3.0 [ 73%]

...rs bufferUsage canRead instanceBuffer vertexDeclaration Methods destroy getUint8Data orphanStorage serilizeVertexDeclaration setData unbind Constructors constructor new NativeVertexBuffer3D(byteLength: number, bufferUsage: BufferUsage, canRead?: boolean): NativeVertexBuffer3D Overrides VertexBuffer3...

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

36. Laya2.0 的3d截图 [ 72%]

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

37. laya.d3.resource.Texture2D [ 72%]

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

38. laya.d3.resource.RenderTexture [ 70%]

... RenderTexture  getData(x:Number, y:Number, width:Number, height:Number):Uint8Array 获得像素数据。 RenderTexture  start():void 开始绑定。 RenderTextureProtected Methods  MethodDefined By  detoryResource():void[override] 销毁资源。 RenderTexture  recreateResource():void[over...

来源: laya_api 发布时间: 20170929

39. laya.d3.graphics.VertexBuffer3D [ 69%]

...t = 0[static] 数据类型_Float32Array类型。VertexBuffer3D  DATATYPE_UINT8ARRAY : int = 1[static] 数据类型_Uint8Array类型。VertexBuffer3DProperty DetailcanReadpropertycanRead:Boolean  [read-only] 获取是否可读。 Implementation     public function get canRead():BooleanvertexC...

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

40. 【官网代码】加载dom音频报错,怎么回事? [ 69%]

...vate function drawHandler():void{Laya.stage.graphics.clear();var dataArray:Uint8Array = new Uint8Array(analyser.frequencyBinCount);analyser.getByteFrequencyData(dataArray);var step:int = Math.round(dataArray.length / 60);for (var i:int = 0; i < 40; i++) {var energy:int = (dataArray[step * i] / 25...

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