大约有 226 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0037 秒)
Laya_社区(171) Laya2.0_示例(20) Laya_示例(18) Laya2.0_文档(9) Laya3.0_api(3) Laya3.0_文档(3) laya_api(1) Laya2.0_api(1)
...); })(); function createCantralRect() { rect = new Sprite(); rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(rect); updateRectPos(); } function updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite;...
来源: Laya_示例 发布时间: 20241118
...45); matrix.translate(100,100); sp.graphics.transform(matrix); sp.graphics.drawRect(0,0,200,100,"#FF0000"); sp.graphics.restore(); Laya.stage.addChild(sp);我测试没有问题,可以把你详细的代码发下,我们看下! 2017-06-09 0 0 分享 微博 QZONE 微信 raytrace 赞同来自: (fun...
来源: Laya_社区 发布时间: 20170609
...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; character.pivot(100,100); // character.scale(0.5, 0.5); Laya.stage.addChil...
来源: Laya_社区 发布时间: 20170828
... sp.graphics.save(); sp.graphics.clipRect(0,0,100,100); sp.graphics.drawRect(0,0,400,400,"#ffffff",null,1); sp.graphics.restore(); Laya.stage.addChild(sp); 2、使用graphics.clipRect之后裁剪区域没有显示、生效? 出现这个问题的话就是顺序错了。必须要先cl...
来源: Laya_社区 发布时间: 20160818
...ayabox.com/question/1261 var sprite:Sprite = new Sprite(); sprite.graphics.drawRect(100,100,100,100,"#ff9900"); var hitarea:HitArea = new HitArea(); var graphics:Graphics = new Graphics(); graphics.drawRect(100,100,100,100,"#ff9900"); hitarea.hit = graphics; sprite.hitArea = hitarea; 2017-07-01 0 1 ...
来源: Laya_社区 发布时间: 20170701
...透问题 //画矩形 this.addLabel = new Sprite(); this.addLabel.graphics.drawRect(0, 730, 1440, 170, "#000000"); this.addLabel.alpha = 0.6; this.addLabel.mousethrough = false; this.addLabel.mouseEnabled = true; sp.addChild(this.addLabel); 仍然能够点击下面的按钮.这个要怎么处理? 20...
来源: Laya_社区 发布时间: 20170726
...{ 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_NOBORDER();mo...
来源: Laya2.0_示例 发布时间: 20241118
...{ 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_NOSCALE();mod...
来源: Laya2.0_示例 发布时间: 20241118
...{ 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_EXTRACT_FIT()...
来源: Laya2.0_示例 发布时间: 20241118
...{ 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_ALL();mo...
来源: Laya2.0_示例 发布时间: 20241118