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

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

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

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

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

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

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

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

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

284. graphics 问题 [ 77%]

...自: (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.s...

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

285. LAYA自带VIDEO在安卓X5中报离屏渲染的错,但是在PC端没有问题 [ 77%]

...渲染的错,但是在PC端没有问题 在device.js中WebGLContext.bindTexture方法报的texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering 2019-11-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

286. layabox中纹理的颜色采样问题,用原生combobox也有这个问题 [ 77%]

...复 专注前端三十年 赞同来自: 无雨之地 解决方法,设置Texture2D的filterMode (texture.bitmap as Laya.Texture2D).filterMode = Laya.BaseTexture.FILTERMODE_POINT; 那么问题来了,如何设置所有的默认是这个值呢 2020-12-10 1 0 分享 微博 QZONE 微信 专注前...

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

287. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 77%]

...代码如下: ```javascript (function() { var Sprite = Laya.Sprite; var Texture = Laya.Texture; var Handler = Laya.Handler; var Res; var img; (function() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路径 Res = "res/img/monkey1.png"; //先加载图片资...

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

288. 图片通过drawTexture平铺出现缝隙 [ 77%]

图片通过drawTexture平铺出现缝隙 this.darwSprite = new Sprite();         this.addChild(this.darwSprite);         var t: Texture = Laya.loader.getRes("load/0.png");         this.darwSprite.graphics.drawTexture(t,0,0);         this.darwSprite.graphics.drawTexture(t,176,0);  ...

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

289. 这方法加载不出来图片 Mac电脑 [ 77%]

这方法加载不出来图片 Mac电脑 var t:Laya.Texture = Laya.loader.getRes("res/RunGameImg/floor.png"); var ape: Sprite = new Sprite(); ape.graphics.drawTexture(t, 0, 0); this.addChild(ape); ape.pos(20, 220); 2017-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

290. laya.particle.ParticleTemplate2D_API3.0 [ 77%]

...tors constructor Properties _id destroyedImmediately lock name settings sv texture url uuid x y DEBUG activeBlendType Accessors cpuMemory destroyed gpuMemory id obsolute referenceCount cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemor...

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