大约有 390 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0058 秒)
Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture 两张图片,一张取出来是Texture。 另一张却是Texture2D 版本 Laya 2.4.0.1600 这是一个图集动画,第一次加载显示没问题,是在第二次的时候出了问题。 播放流程:第...
来源: Laya_社区 发布时间: 20200417
...区域? 救命!canvas定位后 点击区域偏移,求大大们解答 Texture图片能否进行翻转? matter中layasprite怎么改变图片大小? ios14系统下 blendMode='lighter' 图片异常 iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 我...
来源: Laya_社区 发布时间: 20170510
...么,添加到舞台上?添加到舞台上可以用sprite.graphics.drawTexture,你传一个文理texture就可以显示到舞台上!如果回答的不对,你可以继续追问! 2017-02-16 0 3 分享 微博 QZONE 微信 157*****121 赞同来自: 都不知道你在问什么,描述清楚问...
来源: Laya_社区 发布时间: 20170216
...什么克隆一个对象啊? 在下面的“ tempSpr2.graphics.drawTexture(tempSpr.texture, 0, 0, tempSpr.width, tempSpr.height);”中 tempSpr.texture 是空的 if (data && data.items != []) { let tempSpr: Sprite = new Sprite(); let tempImg: Lay...
来源: Laya_社区 发布时间: 20170508
[LayaAir3]资源内存泄漏 1。DrawTrianglesCmd没有对Texture进行添加引用计数,其他类似的Cmd却有。 2。Draw9GridTextureCmd有对Texture进行添加引用,却没有在recover阶段减少引用。 3。SimpleSkinnedMeshRenderer.simpleAnimatorTexture 没有对老的进行减少...
来源: Laya_社区 发布时间: 20241230
...er : int 当前创建精灵所属遮罩层。Scene3D customReflection : TextureCube 获取反射贴图。 Scene3D customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Sprite destroyed : Boolean = false...
来源: Laya2.0_api 发布时间: 20190513
...手动刷新。 注意: 1.Sprite tag : * 对象的标签。 Component texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite tick : Number 滑动的刻度值,滑动数值...
来源: laya_api 发布时间: 20170929
...可以使用 drawToCanvas从游戏中截屏当前sprite 的绘制 let new_texture = sprite.drawToCanvas(width, height, 0, 0) 这里的 width 和height 指的是当前的sprite在游戏中设置的大小 new_texture = ls.Texture.create(new_texture, 0, 0) 重新获取纹理然后将textureHost设...
来源: Laya_社区 发布时间: 20180531
...手动刷新。 注意: 1.Sprite tag : * 对象的标签。 Component texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer...
来源: laya_api 发布时间: 20170929
...手动刷新。 注意: 1.Sprite tag : * 对象的标签。 Component texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer...
来源: laya_api 发布时间: 20170929