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

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

61. pos会影响精灵缩放效果的问题 [ 56%]

...prite(); img2.graphics.drawTexture(texture, 0, 0, 200, 200); img2.graphics.drawCircle(100, 100, 20, "#ffff00"); img2.scale(2, 2); img2.pos(0, 0); img2.pivot(0, 0);效果如图所示,正常,圆圈在螃蟹的中间。   但是,当我改变了img2的位置,即把 img2.pos(0, 0);改成 img2.po...

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

62. laya.display.cmd.DrawCircleCmd_API3.0 [ 56%]

...ected All Inherited Externals Only exported Menu Globals "laya/display/cmd/DrawCircleCmd" DrawCircleCmd Class DrawCircleCmd 绘制圆形 Hierarchy DrawCircleCmd Index Properties fillColor lineColor lineWidth percent radius x y ID Methods getBoundPoints recover Properties fillColor fillColor: any Def...

来源: Laya3.0_api 发布时间: 20231115

63. matterjs渲染laya的ui [ 55%]

...Sprite.anchorX = layaSprite.anchorY = 0.5; //背景色 layaSprite.graphics.drawCircle(120, 120, 120, '#ffffff'); ball.layaSprite = layaSprite; 2018-04-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Laya_XS 赞...

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

64. 圆环不跟随 sprite 一起缩放? [ 55%]

...tSp.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, this.MouseWheel);  this._rootSp.hitArea = new Laya.Rectangle(0, 0, 10000, 10000) this._rootSp.addChild(this.firstSp); Laya.stage.addChild(...

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

65. 分享:LayaAir实现曲线运动 [ 55%]

...unction CurveDemo() { Laya.init(800,400); ball=new Sprite(); ball.graphics.drawCircle(0,0,50,"#FF00FF"); Laya.stage.addChild(ball); ball.x=275; ball.y=200; Laya.timer.frameLoop(1,this,onFrame); } private function onFrame():void { // TODO Auto Generated method stub if (ball.x>540||ball.x<10) { ...

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

66. mouseThrough的功能问题 [ 55%]

...Area(); area.hit.drawRect(0, 0, 500, 500, "#ff0000"); area.unHit.drawCircle(250, 250, 50, "#ff0000"); box.hitArea = area; 你绘制一个多边形区域为hit即可 13339103263 • 2016-12-02 13:59 @cuixueying:好的,谢谢

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

67. Sprite graphics的显示比例问题 [ 54%]

...racter.graphics.drawLine(0, 0, 200, 200, "#ff0000", 1); character.graphics.drawCircle(100, 100, 100, null, "#ff0000", 1); character.graphics.drawRect(0, 0, 200, 200, null, "#0000ff", 1); character.graphics.drawRect(20, 20, 160, 160, null, "#0000ff", 1); character.x = 220; character.y = 220; characte...

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

68. WebGL模式下用遮罩实现圆形头像会有警告出现 [ 54%]

...; this.img.loadImage("url"); const mask = new Laya.Sprite(); mask.graphics.drawCircle(75, 75, 75, "#ffffff"); this.img.mask = mask; this.img.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(this.img); 附件 : --> 2017-01-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

69. 关于代码创建的遮罩会显示遮罩背景色的问题 [ 54%]

... Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(mask); mask.graphics.drawCircle(80,50,40,"#ffffff"); let sprite: Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(sprite); sprite.loadImage("myComp/loading_01.png"); //将遮罩设置给sprite sprite.mask = mask; } 如图所示,白色背景...

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

70. 鼠标点击穿透问题 [ 54%]

...ar sp2:Sprite=new Sprite(); sp2.graphics.beginFill(0xFFFF00); sp2.graphics.drawCircle(200,200,100); sp2.graphics.endFill(); addChild(sp2); sp2.mouseEnabled=false; sp2.addEventListener(MouseEvent.CLICK,onSp2); } protected function onSp2(event:MouseEvent):void { // TODO Auto-generated method stub trac...

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