大约有 2,264 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0090 秒)
Laya_社区(1811) Laya3.0_api(129) laya_api(84) Laya2.0_api(82) Laya2.0_文档(76) Laya_示例(36) Laya3.0_文档(31) Laya2.0_示例(15)
...ge的skin值来动态更换图片。 sprite可以通过sprite.graphcis.drawTexture来实现动态更换图片,当更换新的图片Texture的时候,clear掉之前的显示,将最新的texture赋值就可以了。 2018-02-01 0 0 分享 微博 QZONE 微信 daibao520 赞同来自: 能不能给点...
来源: Laya_社区 发布时间: 20180201
...获取Animation对象的frames属性,通过修改_one[0],赋值新的Texture对象即可实现,如下图: 最近出LayaRuntime包,发现在这个Runtime下,Animatin每一帧的数据是在_cmds中,并且cmds中不是Texture对象,而是HtmlImageElement对象。 现在的问题就...
来源: Laya_社区 发布时间: 20180716
...内存释放不了 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
...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
火狐浏览器上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
...空白了。。。 cuixueying • 2017-05-10 10:34 1、因为image引用的texture是同一个,所以你要确保你的texture引擎没有其他显示对象引用后,再去掉destroy,如果其他显示对象对其依然有引用,你可以先将image从现实列表移除,removeChild并让im...
来源: Laya_社区 发布时间: 20170509
...//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
...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_社区 发布时间: 20190323
...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
...构建app,native:2.0.3),三,创建一个sprite,设置默认的texture,修改texture后,新建一个sprite,获取全部属性,包括资源路径,但是显示的始终是默认的texture(可提供deme,是项目中遇到的,可以私发) Laya_Aaron • 2019-04-02 21:08 新...
来源: Laya_社区 发布时间: 20190402