• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 357 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0036 秒)

41. 显示对象的mask缩放为0时遮罩效果不生效 [ 77%]

...testSp = new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = testSp.height; tmpMask.graphics.clear(); tmpMask.graphic...

来源: Laya_社区 发布时间: 20200421

42. 如何清除graphics所绘制的指定区域 [ 77%]

如何清除graphics所绘制的指定区域 clear()方法清除的是全部,有没有办法只清除其中的一部分 2018-04-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 如果你...

来源: Laya_社区 发布时间: 20180423

43. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 77%]

... = 0 Laya.timer.loop(100, this, () => { if (r >= 360) r = 0; r++; sp.graphics.clear(true); sp.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); sp2.graphics.clear(true); sp2.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); }) 附件 : --> test.zip 2019-07-01 添加评论 免费帖 --> 分享 微博 QZO...

来源: Laya_社区 发布时间: 20190701

44. 骨骼动画-Spine事件 [ 77%]

...lSprite); mLabelSprite.x = mStartX; mLabelSprite.y = mStartY; mLabelSprite.graphics.clear(); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) } function playEnd() { mLabelSpr...

来源: Laya_示例 发布时间: 20240930

45. 用sprite.graphic.draw出一个图形,能否在代码中改变此图形的颜色 [ 77%]

用sprite.graphic.draw出一个图形,能否在代码中改变此图形的颜色 2017-06-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 你可以先调用sprite.graphics.clear(),然...

来源: Laya_社区 发布时间: 20170605

46. Sprite loadImage 的时候出现多张图片同时显示 [ 77%]

Sprite loadImage 的时候出现多张图片同时显示 this.img.graphics.clear(); var imgUrl = (this.flag = !this.flag)? this.imgUrl1 :this.imgUrl2; this.img.loadImage(imgUrl,100,50); 简单的点击sprite切换图片,结果会出现两张图片同时显示的情况 附件 : --> 2018-04-04 添...

来源: Laya_社区 发布时间: 20180404

47. 关于Sprite中切换graphics的问题 [ 76%]

关于Sprite中切换graphics的问题 我们模拟了Animation的方式自己做了一个动画控制组件,可以由应用层自己控制gotoFrame。但目前看来如果Animation对象首次添加到Stage时是在屏幕范围内就没问题,但如果首次添加在屏幕范围外,等屏幕...

来源: Laya_社区 发布时间: 20170616

48. Laya.loader.load 教程代码出错 [ 76%]

...x.toString() +".bmp";                          img.graphics.clear();             var txture:Texture = Laya.loader.getRes(url);             img.graphics.drawTexture(txture);             img.size(txture.width,txture.height);         }...

来源: Laya_社区 发布时间: 20170918

49. 清除矢量图的时候 线条不见了 精灵还在怎么处理 [ 76%]

清除矢量图的时候 线条不见了 精灵还在怎么处理 graphics.clear()这个清楚掉了线条 而我在Stat.show();上看到的Sprite并没有被清除掉,怎么解决 这个优化问题   2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

来源: Laya_社区 发布时间: 20180322

50. laya.display.Graphics [ 76%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames GraphicsProperties | Methods Packagelaya.displayClasspublic class GraphicsInheritanceGraphics ObjectSubclasses AutoBitmap, GraphicsGL Graphics 类用于创建绘图显示对象。Graphics可以同时绘制多个位图或者...

来源: laya_api 发布时间: 20170929