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

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

271. laya打包iOS,运行奔溃,构建时候选择的是2.3.0 [ 79%]

...8 13:55:32.120276+0800 splitgame[1354:43331] getExtension WEBGL_compressed_texture_s3tc 尚未支持 2020-02-18 13:55:32.120543+0800 splitgame[1354:43331] getExtension WEBKIT_WEBGL_compressed_texture_s3tc 尚未支持 2020-02-18 13:55:32.120883+0800 splitgame[1354:43331] getExtension MOZ_WEBGL_compr...

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

272. laya.net.Loader [ 78%]

...集类型,加载完成后返回图集json信息(并创建图集内小图Texture)。Loader  BUFFER : String = arraybuffer[static] 二进制类型,加载完成后返回arraybuffer二进制数据。Loader  FONT : String = font[static] 位图字体类型,加载完成后返回BitmapFont。Loade...

来源: laya_api 发布时间: 20170929

273. 如何使用rendertexture获取相机渲染的动态图片? [ 78%]

如何使用rendertexture获取相机渲染的动态图片? 具体的需求是camera获取到的rendertexture属性,然后想赋值给一个图片,可以动态的反应相机渲染到的图片的动态改变。最好能给出教程或者代码实现,因为Laya的资料实在是太少了... 20...

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

274. laya.display.Graphics [ 78%]

...Color:* = null, lineWidth:Number = 1):void 绘制矩形。 Graphics  drawTexture(tex:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, m:Matrix = null, alpha:Number = 1):Array 绘制纹理。 Graphics  drawTextures(tex:Texture, pos:Array):void 批量绘制同样纹理。 ...

来源: laya_api 发布时间: 20170929

275. loadImage 加载图片,怎么清理当前正在加载的图片 [ 78%]

...,用了    Laya.loader.cancelLoadByUrl(_urlVo.url); Laya.loader.clearTextureRes(_urlVo.url); Laya.loader.clearRes(_urlVo.url)    但是在某些网络或者手机很卡的情况下,并不能全部移除掉,还会继续下载残留在内存中。。而且这些资源是由 Texture2D 的格...

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

276. 同一个Graphics里面绘制超过20000个矢量rect的情况下,Uncaught Error: IBQuadrangle count(之前发起的问题不知道为什么找不到) [ 78%]

...10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); b.graphics.drawTexture(texture); a.graphics.clear(true); a.destroy(); a = b; } a.graphics.drawRect(10*i, 10*j, 10, 10, "#ff0000"); count++; } } 2018-11-1...

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

277. Uint8Array的像素数据在ios中无法改变图片纹理,安卓正常 [ 78%]

...另一张 代码如下: private _testSetPixels() { let data = this.test1.texture.getPixels(0, 0, this.test1.width, this.test1.height); let width = this.test1.width; let height = data.length / 4 / width; let tex2d = new Laya.Texture2D(width, height, 1); tex2d.setPixels(data); this.imgAr.texture.set...

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

278. 设置内存上限后,时不时会闪屏的问题 [ 77%]

...合集中的话可以在资源预加载后添加以下两行代码: var texture:Texture = Laya.loader.getRes(e.url); texture.bitmap.enableMerageInAtlas = false;   2017-10-31 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 FearWood 相...

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

279. laya 2.6.0 加载image报错 [ 77%]

laya 2.6.0 加载image报错 加载IMAGE资源的时候,data为Texture2D类型,前两个判断没走,(data instanceof ArrayBuffer) 和 (!(data instanceof Texture2D))。导致tex为undefined,结果就无法继续加载了。。 LayaAir 2.6.0 的JS版本   ps: 加载的是FairyGu...

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

280. 想用camera做一个类似照相机的功能 [ 77%]

...           this.renderTargetCamera.renderTarget = new RenderTexture(Laya.stage.width, Laya.stage.height);             //渲染顺序             this.renderTargetCamera.renderingOrder = -1;             //清除标记             this.r...

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