大约有 289 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
Laya_社区(107) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(5) Laya2.0_文档(4) Laya2.0_示例(1) Laya_示例(1)
...scaleY scene scrollRect sizeGrid skewX skewY skin source stage staticCache texture timer toolTip top transform url useSourceSize viewport visible width x y zOrder Methods _initialize _processActive _setHeight _setSkin _setWidth addChild addChildAt addChildren addComponent addComponentInstance bubble...
来源: Laya3.0_api 发布时间: 20231115
...源加载完成后,会自动缓存至资源库中。 Image source : Texture 对象的纹理资源。 Image stage : Stage[read-only] 对舞台 stage 的引用。Sprite staticCache : Boolean 是否静态缓存此对象的当前帧的最终属性。为 true 时,子对象变化时不会自动...
来源: laya_api 发布时间: 20170929
...变加载图片的大小是无效的,不过你可以通过先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
求问Texture和Texture2D的区别,和使用问题 对用引擎中这两个类的分别不太清楚,有以下几个问题:1、Texture和Texture2D有什么区别?我发现自己用Laya.loader.load的图片或ui加载的就是Texture,加载.ls/.lh自动生成的贴图就是Texture2D 2、...
来源: Laya_社区 发布时间: 20180314
...nvas = htmlCanvas.getCanvas(); trace(canvas.toDataURL('image/png')); const texture = new Laya.Texture(htmlCanvas); const sp = new Sprite(); sp.graphics.drawTexture(texture); this.shot.addChild(sp);对,是可以的。当时drawToCanvas的第一个参数设置小了,没看到后面的元素。 这...
来源: Laya_社区 发布时间: 20171018
...来袭 用二的幂次方图集和非二的幂次方图集区别在哪? Texture图片能否进行翻转? ui list 里面的元素不能点击两次 图集打包找不到图集文件 使用了u3D导出来的粒子,不停的显示移除并销毁其克隆对象,统计面板的显存和内存就...
来源: Laya_社区 发布时间: 20171226
...r.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但是我换个默认的图集Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.createVie...
来源: Laya_社区 发布时间: 20180326
...) export class LoaderDemo extends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTexture("https://layaair.com/3.x/demo/resources/res/apes/monkey2.png"); } /**加载并显示图片 */ loadTexture(url: strin...
来源: Laya3.0_文档 发布时间: 20251010
...dMode='lighter' 图片异常 循环依赖不能运行 Circular dependency: Texture图片能否进行翻转? ui list 里面的元素不能点击两次 matter中layasprite怎么改变图片大小? 图片添加点击事件 有的不生效 dialog可以点击到外部的元素,如何使其外边不...
来源: Laya_社区 发布时间: 20170814
...生成控制 其他属性的关键帧 (skin 和 y) 另 GraphicNode和Texture节点是可以正常的添加所有属性的关键帧的 附件 : --> 2018-03-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 q...
来源: Laya_社区 发布时间: 20180319