大约有 3 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0021 秒)
..., "powerOfTwo": false,//生成的图集是否尺寸保持在2的整次幂 "textureFormat": "png32"//png32和png8 }, //是针对散图的设置 "sprite": { //width和height分别是允许的散图尺寸,不符合要求的会被复制到resDir "width": 512, "height": 512, //每张散图在图集中...
来源: Laya_社区 发布时间: 20161201
... let texture2d: Laya.Texture2D = new Laya.Texture2D(w,h,Laya.TextureFormat.R8G8B8A8,false,false); texture2d.setPixels(pixels); let tex: Laya.Texture = new Laya.Texture(texture2d); let sp:Laya.Sprite = new Laya.Sprite(tex); }大致...
来源: Laya_社区 发布时间: 20200815
...reshCamera(); //在U方向上使用WARPMODE_CLAMP // texture.format = Laya.TextureFormat.ASTC10x10 texture.wrapModeU = Laya.BaseTexture.WARPMODE_CLAMP; //在V方向使用WARPMODE_REPEAT texture.wrapModeV = Laya.BaseTexture.WARPMODE_CLAMP; //设置过滤方式 texture.filterMode = Laya.BaseTexture.FI...
来源: Laya_社区 发布时间: 20220815