大约有 10 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0047 秒)
...帧动画这里看了下源码实现,需要每帧动画都设置不同的graphics,每个graphics里保存了每帧图片贴图,这里为什么不是公用大贴图,修改渲染uv来实现啊? 公用贴图不是在最终渲染的时候 好合并渲染批次吗? 2017-06-29 添加评论 免...
来源: Laya_社区 发布时间: 20170629
...如果还有不明白的我们再沟通!var sp1:Sprite=new Sprite(); sp1.graphics.drawRect(0,0,200,400,"#FF0000"); Laya.stage.addChild(sp1); var sp2:Sprite=new Sprite(); sp2.graphics.drawRect(0,0,300,400,"#0000FF"); sp2.pos(100,100); if(sp1.getBounds().intersects(sp2.getBounds())) { trace("相交...
来源: Laya_社区 发布时间: 20161202
...罩 https://ldc.layabox.com/doc/?nav=zh-as-1-3-1 在代码中怎么改变Graphics圆形组件的大小或位置? 2018-12-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 185*****818 赞同来自: 了解下 repa...
来源: Laya_社区 发布时间: 20181229
...ructor() { super(); this.init(); } init() { let bg = new Laya.Sprite(); bg.graphics.drawRect(0, 0, 500, 500, '#aaa'); this.addChild(bg); this.panel = new Laya.Panel(); this.panel.width = 500; this.panel.height = 500; this.panel.vScrollBarSkin = ''; this.panel.hScrollBarSkin = ''; this.addChild(this....
来源: Laya_社区 发布时间: 20210427
...heen 赞同来自: 同样是fillText,为啥我就画不出来。。 this.graphics.fillText(index + "", p.x, p.y, "12px Arial", "0xffffff", "center"); 在debugger的时候打印出来是undefined... 如果超出数量还会报错,需要改底层才行吗? 2018-01-15 0 2 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180112
贝塞尔曲线 不平滑的疑问 sp.graphics.drawCurves(375,375,[0,0,100,100,200,0,300,0,300,300],"#ff0000",3) 为什么画出来的曲线中间不平滑? 附件 : --> 2018-08-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20180803
...点3d射线碰撞和UI点击穿透的问题 mask在layaplayer中有问题 graphics alpha 问题 问题状态 最新活动: 2017-08-10 01:35 浏览: 1235 关注: 2 人 zfree • 2017-08-08 21:49 这个用法改的.... 好吧 比较无奈 只能自己封装下了 zfree • 2017-08-08 21:51 /** *加载...
来源: Laya_社区 发布时间: 20170808
...博 QZONE 微信 hujian0318 赞同来自: var sp:Sprite = new Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#ffff00"); Laya.stage.addChild(sp); sp.x = 50; trace(sp.x); // 输出50 sp.cacheAs = "bitmap"; sp.staticCache = true; sp.x = 100; trace(sp.x); // 输出100,且编译出来的效果也是...
来源: Laya_社区 发布时间: 20171120
...).pos(0, 200);//创建精灵并把它放倒200位置 * sp.graphics.drawTexture(texture);//把截图绘制到精灵上 * Laya.stage.addChild(sp);//把精灵显示到舞台 * * <p>也可以获取原始图片数据,分享到网...
来源: Laya_社区 发布时间: 20180719
...prite(); this.bar = new Sprite(); this.bar.x = 15; this.bar.y = 2; this.bg.graphics.drawTexture(texture1, 0, 0, 180, 21); this.bar.graphics.drawTexture(texture2, 0, 0, 155, 12); this.addChild(this.bg); this.addChild(this.bar); } /** * 修改当前状态 */ _proto.changeValue = function(value){ this....
来源: Laya_社区 发布时间: 20160803