大约有 1,772 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0051 秒)
Laya_社区(1393) laya_api(90) Laya3.0_api(82) Laya2.0_api(72) Laya2.0_文档(59) Laya_示例(33) Laya2.0_示例(32) Laya3.0_文档(11)
... = 0; // 用下面这组数据是可显示的 // sp.y = 1; // sp.x = 1; sp.graphics.drawRect(0, 0, 200, 200, "#00FF00"); Laya.stage.addChild(panel); 这个是我的代码,sp是一个精灵,放在panel的0,0点后确实是不显示,往右下移一个像素后就能显示出来了 2017-02-20 0 0 ...
来源: Laya_社区 发布时间: 20170217
...tion onTweenComplete() { evalBgColor(); } function renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, getHexColorString()); } function getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChanne...
来源: Laya_示例 发布时间: 20251209
...child数量居然是0,我这张image下有17个poly,然后去image下的graphic下看只发现有一个为cmd的数组里面存的都是坐标不知道是不是记录的poly也刚好是17个,然后完全没有记录这些poly我给它的命名这叫人怎么知道点击的是哪一个poly? 附...
来源: Laya_社区 发布时间: 20170227
...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_示例 发布时间: 20251209
...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_示例 发布时间: 20251209
...esult; } onTweenComplete() { this.evalBgColor(); } renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, this.getHexColorString()); } getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChannels.g...
来源: Laya2.0_示例 发布时间: 20251209
...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_示例 发布时间: 20251209
...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_示例 发布时间: 20251209
...ts:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, 小游戏开放数据域下使用Laya.List绘制了排行榜,但是触摸没有滚动响应 如何给Sprite的graphics绘制的线...
来源: Laya_社区 发布时间: 20170922
... Pool.recover("item", item); item.graphics.clear(); } item的父容器是通过回收池获取的,父容器带有原来的item,现在希望删掉原来的item,添加新的item,使用上面的代码去达不到效果,结果是...
来源: Laya_社区 发布时间: 20170113