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

大约有 1,017 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)

171. 骨骼动画-Spine事件 [ 83%]

...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_示例 发布时间: 20260303

172. 屏幕适配-缩放-No Border [ 83%]

...alRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOBO...

来源: Laya2.0_示例 发布时间: 20260303

173. 屏幕适配-缩放-No Scale [ 83%]

...alRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOSC...

来源: Laya2.0_示例 发布时间: 20260303

174. drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 [ 83%]

...域下使用Laya.List绘制了排行榜,但是触摸没有滚动响应 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, 怎么检测点是否在 graphics所绘制的区域内 如何清除graphics绘制的矢量图 webgl 绘制graphics出报错 如何获取...

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

175. graphics矢量图和svg矢量图有什么区别吗 [ 83%]

graphics矢量图和svg矢量图有什么区别吗 graphics矢量图和svg矢量图有什么区别吗。 2017-09-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: cyqcyqcyq SVG是矢量...

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

176. 屏幕适配-缩放-Extract Fit [ 83%]

...alRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_EXTR...

来源: Laya2.0_示例 发布时间: 20260303

177. 屏幕适配-缩放-Show All [ 83%]

...alRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_SHOW...

来源: Laya2.0_示例 发布时间: 20260303

178. graphics绘制的图形能作为mask来用吗 [ 83%]

graphics绘制的图形能作为mask来用吗 想做个图片按扇形从角度0慢慢显示出来,到360度。 我在场景里放了个pie,设置为mask,编辑状态是对的,裁切了的。 但运行后没有裁切效果。为什么,该怎么做 2017-03-21 添加评论 免费帖 --> 分...

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

179. 遇到个很奇怪的问题,不同层级用graphics绘制的背景,会被清除 [ 83%]

遇到个很奇怪的问题,不同层级用graphics绘制的背景,会被清除 Laya.timer.once(1000, this, function (u: Laya.Sprite, _index) { Laya.stage.removeChild(u); }, [txt, index]);  当上面清除指定节点的时候,会清掉其他节点用graphics绘制的数据   微信打开...

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

180. 可以为线条设置hit(碰撞)区域吗? [ 83%]

...以为线条设置hit(碰撞)区域吗? var sp:Sprite = new Sprite();sp.graphics.clear(); sp.graphics.drawRect(0, 0, 100,100,"#ff0000" ); var hit:HitArea = new HitArea(); hit.hit = sp.graphics; sp.hitArea = hit;   使用上面的方法可以给有填充 sp 添加触发区域!   但是如果sp...

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