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

大约有 192 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0031 秒)

111. laya.utils.Utils [ 64%]

...为角度。 Utils  toHexColor(color:Number):String[static] 将传入的 uint 类型颜色值转换为字符串型颜色值。 Utils  toRadian(angle:Number):Number[static] 角度转弧度。 UtilsProperty DetailparseXMLFromStringpropertypublic static var parseXMLFromString:Function 将字符串...

来源: laya_api 发布时间: 20170929

112. layaAir TS项目如何引用protoBuf库? [ 63%]

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

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

113. laya.utils.Utils [ 63%]

...为角度。 Utils  toHexColor(color:Number):String[static] 将传入的 uint 类型颜色值转换为字符串型颜色值。 Utils  toRadian(angle:Number):Number[static] 角度转弧度。 UtilsProperty DetailparseXMLFromStringpropertypublic static var parseXMLFromString:Function 将字符串...

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

114. 2D精灵光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...aya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = new Uint16Array(2 * 3); let index = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = width; vertices[index++] = 0; vertices[index++] = 0; ve...

来源: Laya3.0_文档 发布时间: 20251010

115. [2.0beta5]引入场景报错 [ 61%]

...下什么原因,十分感谢。RangeError: Source is too large     at Uint8Array.set (native)     at Pv (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/libs/laya.physics3D.js:304:397)     at Object.window.Physics3D (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/L...

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

116. 为什么自定义shader大图正常,小图就被缩小了 [ 61%]

...2D.create(); this.iBuffer = Laya.IndexBuffer2D.create(); this.ibData = new Uint16Array(); if(vb) { vbArray = vb; } else{ vbArray = []; var texWidth = texture.width; var texHeight = texture.height; // console.log("liuyi",texWidth); //定义颜色值,取值范围0~1浮点 var red = 1; var ...

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

117. [LayaAirIDE3]怎么取消像素差值? [ 61%]

...清0的bug 给边缘带透明像素的Image设置sizeGrid时显示异常 Uint8Array的像素数据在ios中无法改变图片纹理,安卓正常 问题状态 最新活动: 2025-07-16 09:40 浏览: 800 关注: 1 人

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

118. laya.utils.FontInfo [ 60%]

...y : String = ArialFontInfo  _font : String = 14px ArialFontInfo  _id : uintFontInfo  _italic : Boolean = falseFontInfo  _size : int = 14FontInfoPublic Methods  MethodDefined By  FontInfo(font:String)FontInfo  Parse(font:String):FontInfo[static] FontInfo  setFont(value:String):voidFont...

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

119. 求个arraybuffer转texture2D [ 59%]

...为空 Texture,和Texture2D如何互转? Texture2D类getPixels()返回的uint8Array按什么格式存储的 问题状态 最新活动: 2018-11-19 14:53 浏览: 829 关注: 2 人

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

120. RenderTexture的像素读取(JavaScript-3D基础(JS)-LayaAir3D之纹理) [ 59%]

...染目标的像素数据,默认renderTarget的颜色为RGBA var out = new Uint8Array(2048*2048*4); renderTargetCamera.renderTarget.getData(0, 0, 2048, 2048, out); //设置纹理的填充像素像素 tex.setPixels(out); ``` 在开始渲染后,我们调整视角就可以看到拍照的效果了。 !...

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