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

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

161. 3d 有类似graphics的接口吗,矢量绘制! [ 84%]

3d 有类似graphics的接口吗,矢量绘制! 3d 有类似graphics的接口吗,矢量绘制! 2017-09-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 看下SphereMesh...

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

162. 关于Sprite回收 [ 84%]

...            Pool.recover("item", item);                 item.graphics.clear();             }    item的父容器是通过回收池获取的,父容器带有原来的item,现在希望删掉原来的item,添加新的item,使用上面的代码去达不到效果,结果是...

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

163. 自动旋转后残影 [ 84%]

...:void{ ChangeSize(); if(_tip) _tip.destroy();   _tip = new Sprite(); _tip.graphics.drawRect(0,0,100,100,"#FFFFFF"); _tip.size(100,100); Laya.stage.addChild(_tip);   Tween.to(_tip,{y:Browser.height - _tip.height,x:Browser.width-_tip.width},2000,null); } } }     附件 : --> 2019-05-20 添加评...

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

164. 圆环不跟随 sprite 一起缩放? [ 84%]

...otSp = new Laya.Sprite();  this.firstSp = new Laya.Sprite(); this.firstSp.graphics.drawRect(0, -100, 200, 200, null, "#ffffff"); this.firstSp.graphics.drawLine(0, 0, 100, 100, "#ffffff", 5); this.firstSp.graphics.drawCircle(100, 100, 20, null, "ffffff"); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, ...

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

165. 计时器-延迟执行 [ 83%]

...eateButton(label) { var w = 300, h = 60; var button = new Sprite(); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } function onDecreaseAlpha1(e) { //移除鼠标单击事件 button1.o...

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

166. 如何获取 graphics 绘制的线段长度 [ 83%]

如何获取 graphics 绘制的线段长度 如题 2017-06-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 没有办法直接获取graphics线段的长度,线段的长度需要你自...

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

167. 关于.graphics.drawPath的问题 [ 83%]

关于.graphics.drawPath的问题 我init的高度是2001,为什么用graphics.drawPath高度为800时在这么下面,按理应该在中间偏上呀?   代码如下:Laya.init(1125, 2001); Laya.stage.scaleMode = "exactfit"; Laya.stage.alignH = "center";        Laya.stage.screenMode = "v...

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

168. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 83%]

...); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.height); hitArea.hit = graphic; skeleton.hitArea = hitArea; Laya.stage.graphics.drawRect(-rectangle.x, -rectangle.y, recta...

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

169. 关于Graphics中drawPath方法使用arcTo的bug [ 83%]

关于Graphics中drawPath方法使用arcTo的bug 看引擎的源码中,有用到arcTo方法,查阅CanvasRenderingContext2d API大概意思是利用上下问的一个点,加上两个控制点,形成一个夹角,然后找到刚好相切这两条线的半径微为r的圆的一部分圆弧,...

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

170. 计时器-延迟执行 [ 83%]

...00, h = 60; let button = new Sprite(); Laya.stage.addChild(button); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } onDecreaseAlpha1(e) { const Event = Laya.Event; //移除鼠标单...

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