大约有 1,017 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0123 秒)
Laya_社区(720) Laya3.0_api(64) Laya2.0_api(59) laya_api(56) Laya2.0_文档(43) Laya2.0_示例(32) Laya_示例(32) Laya3.0_文档(11)
3d 有类似graphics的接口吗,矢量绘制! 3d 有类似graphics的接口吗,矢量绘制! 2017-09-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 看下SphereMesh...
来源: Laya_社区 发布时间: 20170923
... Pool.recover("item", item); item.graphics.clear(); } item的父容器是通过回收池获取的,父容器带有原来的item,现在希望删掉原来的item,添加新的item,使用上面的代码去达不到效果,结果是...
来源: Laya_社区 发布时间: 20170113
...: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
...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
...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
如何获取 graphics 绘制的线段长度 如题 2017-06-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 没有办法直接获取graphics线段的长度,线段的长度需要你自...
来源: Laya_社区 发布时间: 20170609
关于.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
...); 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
关于Graphics中drawPath方法使用arcTo的bug 看引擎的源码中,有用到arcTo方法,查阅CanvasRenderingContext2d API大概意思是利用上下问的一个点,加上两个控制点,形成一个夹角,然后找到刚好相切这两条线的半径微为r的圆的一部分圆弧,...
来源: Laya_社区 发布时间: 20201023
...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