大约有 232 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
...版本:1.7.16) 关于适配采用showAll后留白部分的颜色问题 Texture图片能否进行翻转? matter中layasprite怎么改变图片大小? ios14系统下 blendMode='lighter' 图片异常 如何获取图片每个像素点的RGB? Panel中的东西左右拖动好象有问题 laya1.7...
来源: Laya_社区 发布时间: 20161214
...role:any = Matter.Bodies.circle(x,y,50,roleOptions);//这里不需要定义texture或者layaSprite var roleImg = new Laya.Sprite(); roleImg.loadImage("../xx.png"x,y,width,height);//直接定义roleImg的大小及相对位置 roleImg.zOrder = 2;//还能定义层级,这个层级是与laya直接相...
来源: Laya_社区 发布时间: 20180827
...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) Texture图片能否进行翻转? 关于适配采用showAll后留白部分的颜色问题 ios14系统下 blendMode='lighter' 图片异常 matter中layasprite怎么改变图片大小? 图片不能按轴心旋转 两个问...
来源: Laya_社区 发布时间: 20230316
texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 export class Texture2dTest { private sprite3D:Laya.Sprite3D; private readonly AllPng:string[] = ["pic-001.png","output-06.png"]; private texture:Laya.Texture2D; private box; constructor(){ Laya3D.init(0, 0); Laya.s...
来源: Laya_社区 发布时间: 20220815
...请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: texture类里有 create 方法 /** * 根据指定资源和坐标、宽高、偏移量等创建 <code>Texture</code> 对象。 * @param source 绘图资源 img 或者 Text...
来源: Laya_社区 发布时间: 20180906
... Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, ...
来源: Laya_社区 发布时间: 20190126
graphics的fillTexture 圆角图边缘有多出线条 var texture = LoadingManager.instance.getRes("res/progress.png"); var graphics=new Laya.Graphics(); graphics.fillTexture(texture,0,0,texture.width,texture.height,"repeat"); 如果用drawTexture就没问题,因为平铺需求 需要用到fillTe...
来源: Laya_社区 发布时间: 20180904
... 个回复 cuixueying 赞同来自: 1、譬如我有一张图片 2、通过TextureCreate创建package { import laya.display.Sprite; import laya.resource.Texture; import laya.utils.Handler; public class CupPhone { public function CupPhone() ...
来源: Laya_社区 发布时间: 20160506
...回复 痛饮一杯苦酒 赞同来自: render: { opacity : 0.5, sprite: { texture: './img/lanqiu.png', } } 2018-06-11 0 0 分享 微博 QZONE 微信 183*****426 赞同来自: 不知道你需要的功能是什么,但是在刚体下面有这个Object layaSprite 2018-06-11 0 0 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180611
...重的发热。 1.2 纹理格式种类 1.2.1 ASTC ASTC(Adaptive Scalable Texture Compression)是一种世界领先的新型纹理压缩格式。ASTC由ARM和AMD联合开发,2012年发布。是一种基于块的有损压缩算法。它的压缩分块从4x4到12x12最终可以压缩每个像素...
来源: Laya3.0_文档 发布时间: 20251010