大约有 2,258 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0073 秒)
Laya_社区(1808) Laya3.0_api(129) laya_api(84) Laya2.0_api(82) Laya2.0_文档(76) Laya_示例(36) Laya3.0_文档(28) Laya2.0_示例(15)
... { texture: texture, xOffset: 20.5, yOffset: 28 } } 这些参数在matter.js的...
来源: Laya_社区 发布时间: 20170102
...animation,loadAtlas后,AtlasResource的_referenceCount是0,对应的Texture2D的_referenceCount是AtlasResource中使用的次数,当animation执行destyoy后,AtlasResource和Texture2D的_referenceCount没有变化,再次创建后AtlasResource的_referenceCount依旧是0,对应的Textu...
来源: Laya_社区 发布时间: 20231212
...n onAssetLoaded(e:*=null):void { // var texture:Texture = Loader.getRes("res/Dragon.png"); // var data:ArrayBuffer = Loader.getRes("res/Dragon.sk"); factory = new Templet(); factory.on(Event.COMPLETE, t...
来源: Laya_社区 发布时间: 20160902
...边将sharedCanvas的内容绘制到主屏幕,伪代码如下: var myTexture = new Laya.Texture(sharedCanvas) myTexture.bitmap.alwaysChange = true; this.graphics.drawTexture(myTexture, x, y, width, height) 目前遇到的问题: 主域里面的texture获取在获取sharedCanvas里的图案...
来源: Laya_社区 发布时间: 20180419
...变加载图片的大小是无效的,不过你可以通过先clear在drawTexture的方法设置下,代码如下: var sprite = new laya.display.Sprite(); sprite.loadImage("comp/bg.png",0,0,0,0,Handler.create(this,function(texture:laya.resource.Texture){ sprite.graphics.clear(); ...
来源: Laya_社区 发布时间: 20160711
...s://sh.mudgj.com/api/playe ... ot%3B, Laya.Loader.IMAGE ) .then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; sp.pos(0, 200); this.addChild(sp); });无法正常显示 检查发现 qg.downloadFile 报 error { "errCode": -3, "statusCode": 404, ...
来源: Laya_社区 发布时间: 20250818
... // 图片加载 var t = Laya.loader.getRes("res/island.png"); var tBall = Texture.create(t,866,190,548,305); var tTower = Texture.create(t,data.tower[towerLel].x,data.tower[towerLel].y,data.tower[towerLel].w,data.tower[towerLel].h); var tAeroboat = Texture.create(t,data.aeroboat[aeroboatLel].x , da...
来源: Laya_社区 发布时间: 20170720
...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...
来源: laya_api 发布时间: 20170929
图片通过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
...Loader.loadedMap) { var t:Texture = null; if(Loader.loadedMap[i] is Texture) { t=Loader.loadedMap[i]; t.destroy(); ...
来源: Laya_社区 发布时间: 20170113