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

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

221. 关于大量图片加载绘制后的内存暴增的疑问 [ 89%]

...加载把302个图片资源加入到内存中,然后通过getRes 和 drawTexture 添加SPRITE对象到屏幕中。 预加载后的初始内存为29M左右 之后开始逐个添加SPRITE,在添加第1个到第80个头像的时候,内存显示稳定在29M 但是当添加第81个SPRITE头像的...

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

222. android下layabox调用Laya.Texture2D.load报错 [ 89%]

LayaPlayer android下layabox调用Laya.Texture2D.load报错 看源码是WebGL.mainContext为空,请问会是配置问题,还是某种支持问题吗? (PS:: h5浏览器运行是正常的)   报错堆栈: 02-06 14:59:43.858  6545  6658 I LayaBox : alert=http://10.0.1.72/game/dev-loca ... 566...

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

223. Laya3d 能使用类似u3d的Unlit/Texture这个shader么? [ 89%]

Laya3d 能使用类似u3d的Unlit/Texture这个shader么? 就是单纯使用贴图渲染,不用灯光 2019-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Zong 赞同来自: 找到了,不好意思 2019...

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

224. 关于Texture.getTexturePixels()函数BUG的修复代码 [ 89%]

关于Texture.getTexturePixels()函数BUG的修复代码 将变量uk的值改为1.0/texw 将变量uv的值改为1.0/texh 即可完美解决现在取像素值错误的问题。 uvh,uvw两个变量不需要了,可以删除   附件 : --> 2019-11-08 添加评论 免费帖 --> 分享 微博 QZONE ...

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

225. 1.7.18beta少方法? [ 89%]

...WebGL.mainContext; var preTarget:* = WebGLContext.curBindTexTarget; var preTexture:* = WebGLContext.curBindTexValue; WebGLContext.bindTexture(gl, WebGLContext.TEXTURE_2D, _source); //由于HTML5中Image不能直接获取像素素数,只能先画到Canvas上再取出像素数据,再分别texSubImag...

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

226. laya.d3.graphics.IVertex [ 89%]

...plementors VertexGlitter, VertexParticle, VertexPosition, VertexPositionNTBTexture, VertexPositionNTBTexture0Texture1Skin, VertexPositionNTBTextureSkin, VertexPositionNormal, VertexPositionNormalColor, VertexPositionNormalColorSkin, VertexPositionNormalColorSkinTangent, VertexPositionNormalColorTang...

来源: laya_api 发布时间: 20170929

227. 关于LayaAir 2.1.0beta 版本引擎Texture.getPixels在LayaNative上面的报错 [ 89%]

关于LayaAir 2.1.0beta 版本引擎Texture.getPixels在LayaNative上面的报错 这个是个老问题了,上个版本报错信息是获取像素值的时候rgba数组是null,这次的报错是_nativeObj是null,麻烦官方给看下,这个接口急用,如有解决办法请直接回复我...

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

228. IDE打开某个场景时弹处弹框报错:对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null [ 89%]

IDE打开某个场景时弹处弹框报错:对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null 对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null 附件 : --> 2020-02-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

229. Laya2.0 的3d截图 [ 89%]

...     let h: number = gl.drawingBufferHeight;         let texture2d: Laya.Texture2D = new Laya.Texture2D(w,h,Laya.TextureFormat.R8G8B8A8,false,false);         texture2d.setPixels(pixels);         let tex: Laya.Texture = new Laya.Texture(texture2d);     ...

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

230. laya.ui.AutoBitmap_API3.0 [ 89%]

...llipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale setState strokeText transform translate Constructors constructor new AutoBitmap(): AutoBitmap Inhe...

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