大约有 390 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0067 秒)
...而在image的skin更换皮肤时,可以从loader里使用getRes加载到texture,但此时texture还未加载完成,所以导致source._bitmap为null,无法显示的问题,这个问题目前我们没有较好的解决方案,只能使用预加载或在loadImage的回调内更换skin来规...
来源: Laya_社区 发布时间: 20211105
...(img); }else { for (var i=0;i < this._stateNum;i++){ this._sources.push(Texture.createFromTexture(img,0,height *i,width,height)); } } AutoBitmap.setCache(key,this._sources); } if (this._autoSize){ this._bitmap.width=this._width || width; this._bitmap.height=this._height || height; if (this._text)...
来源: Laya_社区 发布时间: 20170516
... // 加载完成后绘制到building Sprite上 let texture = Laya.loader.getRes("res/building.png"); this.building.graphics.drawTexture(texture, 0, 0); }), null, Laya.Loader.IMAGE ); ...
来源: Laya_社区 发布时间: 20251125
...ndom between two Curve:在两个曲线中随机取值 3.1.5 纹理动画 Texture Sheet 用来播放粒子动画的模块,粒子动画的原材料是一种纹理,它包含了一组帧动画,能够以动画方式渲染粒子。 帧动画:使用多张图片,每张图片为一帧,构成一...
来源: Laya3.0_文档 发布时间: 20251010
...ndom between two Curve:在两个曲线中随机取值 3.1.5 纹理动画 Texture Sheet 用来播放粒子动画的模块,粒子动画的原材料是一种纹理,它包含了一组帧动画,能够以动画方式渲染粒子。 帧动画:使用多张图片,每张图片为一帧,构成一...
来源: Laya3.0_文档 发布时间: 20250104
...景里,3d场景里,3d场景里,我先dispose或者destory掉了某个texture2d,然后我尝试再去加载显示这张图,怎么也显示不了,具体代码如下: 这个函数尝试创建一个lh然后显示出来,然后删除同时清理一些资源,第二次调用这个函数的...
来源: Laya_社区 发布时间: 20180814
... player_rank = body.wxData.get_canvas_4_code("SHOW_PLAYER_RANK",0) var rankTexture = new Laya.Texture(sharedCanvas); rankTexture.bitmap.alwaysChange = true; var pl = new Laya.Sprite() pl.graphics.drawTexture(rankTexture, 0, 0); body.addChild(pl) } 附件 : --> 2018-12-17 添加评论 免费帖 -->...
来源: Laya_社区 发布时间: 20181217
... var clips=WeakObject.I.get(key); if (!Utils.isOkTextureList(clips)){ clips=null; } if (clips)this._sources=clips; else { this._sources=; if (this._stateNu...
来源: Laya_社区 发布时间: 20191122
...纹理资源的后缀类型2、纹理资源的通用属性2.1 纹理类型 textureType2.2 环绕模式 wrapMode2.3 过滤模式 filterMode2.4 纹理翻转 flip2.5 纹理旋转 rotate2.6 非2次幂缩放 npot2.7 可读写 readWrite2.8 纹理格式 format3、精灵纹理的专有属性3.1 九宫格 si...
来源: Laya3.0_文档 发布时间: 20251128
...ImageAssetImporter): void | Promise<void> { if (assetImporter.config.textureType != 2) { assetImporter.config.platformDefault = { format: 10 }; } } } (1)可以使用assetImporter.isNew区分是否是新增加的资源; (2)增加或者修改IAssetProcessor后,资源库没有自动为现有...
来源: Laya3.0_文档 发布时间: 20251010