大约有 95 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0035 秒)
动画能类似图片纹理切换一样切换吗? 图片纹理切换的案例代码: ape.graphics.clear(); var texture = Laya.loader.getRes(textureUrl); ape.graphics.drawTexture(texture, 0, 0); Laya.Animation()这样的动画有类似纹理切换这样的方法吗? 2017-12-05 添加评论 ...
来源: Laya_社区 发布时间: 20171205
Graphics.cmds切换纹理做动画 论坛的大神们:为了节约Sprite,我准备用Graphics.cmds切换纹理做动画,有没有已经做过的,会不会遇到坑? 2017-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20171108
... 72); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); // 显示默认纹理 switchTexture(); ape.on("click", this, switchTexture); } function switchTexture() { var textureUrl = (flag = !flag) ? texture1 : texture2; // 更换纹理 ape.graphics.clear(); var texture = Laya.loader.getRes(textureU...
来源: Laya_示例 发布时间: 20250221
... this.ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); // 显示默认纹理 this.switchTexture(); this.ape.on("click", this, this.switchTexture); } private switchTexture(): void { var textureUrl: string = (this.flag = !this.flag) ? this.texture1 : this.texture2; // 更换纹理 this.ape.graphi...
来源: Laya2.0_示例 发布时间: 20250221
...谢layaBox新增加了replaceSlotSkinName这个方法!使得单个槽换纹理得以实现。 我在用的时候发现参数和原生的有点区别。 原生的为 replaceSlotSkinName必须接受三个参数,多了一个“先前的纹理”这个参数,这就有一个问题,玩家在动态...
来源: Laya_社区 发布时间: 20161228
...听switchImg中图片区域的点击事件,触发后执行switchImg切换纹理绘制 this.img.on("click",this,this.switchImg); //设置图片坐标 this.img.pos(100,50); } private switchImg():void{ //清空绘制 this.img.graphics.clear(); //获得要切换的图片资源...
来源: Laya_社区 发布时间: 20180226
webgl渲染纹理有数量限制吗 webgl渲染纹理有数量限制吗 附件 : --> 2017-11-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ymsdandan 赞同来自: 没有限制,但是sprite尽量限制在...
来源: Laya_社区 发布时间: 20171128
....stage.addChild(ape); ape.pivot(55, 72); ape.pos(200, 200); // 显示默认纹理 switchTexture(); ape.on("click", this, switchTexture); } function switchTexture() { var textureUrl = (flag = !flag) ? texture1 : texture2; // 更换纹理 ape.graphics.clear(); ape.loadImage(textureUrl); var texture = ...
来源: Laya2.0_文档 发布时间: 20210715
graphics绘制问题 在一个sprite上用graphics绘制5个不同纹理,然后用cmd切换纹理,最后停止切换纹理,发现有些纹理x坐标会偏移。 2017-06-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...
来源: Laya_社区 发布时间: 20170603
...骨的局部换肤(根据插槽索引换肤、根据插槽name换肤、纹理换肤、网格换肤)、全局换肤 需注意: 1、Dragonbones不支持全局换肤,Spine支持全局换肤 2、使用到IK和网格的动画需要开启WebGL,否则可能会出现皮...
来源: Laya_社区 发布时间: 20170324