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

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

451. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 77%]

...ya.loader.load("res/apes/monkey2.png",Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.height); Laya.stage.addChild(sp); })); ``` 使用Graphics.drawTexture并不会...

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

452. Sprite-屏幕截图 [ 77%]

...; this.aimSp = null; this.drawImage = null; this.drawSp = null; this.monkeyTexture = null; // 不支持WebGL时自动切换至Canvas Config.preserveDrawingBuffer =true; Laya.init(Browser.clientWidth, Browser.clientHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTE...

来源: Laya2.0_示例 发布时间: 20251209

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

454. 火狐浏览器上webgl异常 [ 77%]

火狐浏览器上webgl异常 Error: WebGL: texSubImage2D: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow. async.race.0._hash.e3a9c451.js%20line%20297%20%3E%20eval:4:30925 Error: WebGL: texSubImage2D: This operation requires zeroing tex...

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

455. 安卓app加载场景错误 [ 77%]

...//192.167.0.100/h5/layawe ... 6756: TypeError: Cannot read property 'createTexture' of null var glTexture=this._source=gl.createTexture(); ^ TypeError: Cannot read property 'createTexture' of null at Texture2D.__proto._createWebGlTexture (http://192.167.0.100/h5/layawe ... 756:32) at Texture2D.__pro...

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

456. 纹理截取后内存释放不了 [ 77%]

...内存释放不了 private var oriDBArr:Array = null;//位图源 var tex:Texture = Laya.loader.getRes(_url); for (var i:int = 0; i < list1["oriBDPos"].length; i++ ) { var g:Graphics = new Graphics(); var t:Texture = Texture.createFromTexture(tex, posObj.x, posObj.y, posObj.w, posObj.h); g.drawTex...

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

457. 关于资源回收的问题 [ 77%]

...空白了。。。 cuixueying • 2017-05-10 10:34 1、因为image引用的texture是同一个,所以你要确保你的texture引擎没有其他显示对象引用后,再去掉destroy,如果其他显示对象对其依然有引用,你可以先将image从现实列表移除,removeChild并让im...

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

458. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 77%]

...prite(); picture.loadImage(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / 2; picture.scale(cardScaleValue, cardScaleValue, true); pi...

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

459. 3D开启多线程报错 [ 77%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225)     at Texture2D.__proto.recreateResource (laya.d3.js:37271)     at Texture2D.__proto.onAsynLoaded (laya.d3.js:37329)     at ResInfo.onLoaded (laya.core.js:13189)...

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

460. 发布ios,sprite无法设置宽高 [ 77%]

...构建app,native:2.0.3),三,创建一个sprite,设置默认的texture,修改texture后,新建一个sprite,获取全部属性,包括资源路径,但是显示的始终是默认的texture(可提供deme,是项目中遇到的,可以私发) Laya_Aaron • 2019-04-02 21:08 新...

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