大约有 592 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
Laya_社区(424) Laya3.0_api(61) Laya2.0_示例(32) Laya_示例(31) Laya2.0_文档(30) Laya3.0_文档(11) laya_api(2) Laya2.0_api(1)
...var textureUrl = (flag = !flag) ? texture1 : texture2; // 更换纹理 ape.graphics.clear(); var texture = Laya.loader.getRes(textureUrl); ape.graphics.drawTexture(texture, 0, 0); // 设置交互区域 ape.size(texture.width, texture.height); } })();module laya { import Sprite = Laya.Sprite; import ...
来源: Laya_示例 发布时间: 20251209
graphics 绘制线条粗细不一样 rt webgl 模式下 graphics 绘制线条粗细一样 canvas 正常 版本最新 this.graphics.drawRect(0,0,100,100,null,"#000000",2) 效果: 代码: var sp:Sprite = new Sprite(); this.addChild(sp); ...
来源: Laya_社区 发布时间: 20180510
...图1-1所示。 (动图1-1) 在IDE中可以通过这些选项来绘制Graphics,如图1-2所示, (图1-2) LayaAir引擎中 laya.display.Graphics 类可以查看到API的各种矢量绘图方法。 drawRect fillText drawPath drawCircle drawPie drawLine drawLines drawPoly drawCurves ...... ...
来源: Laya3.0_文档 发布时间: 20251010
...lSprite); mLabelSprite.x = mStartX; mLabelSprite.y = mStartY; mLabelSprite.graphics.clear(); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) } function playEnd() { mLabelSpr...
来源: Laya_示例 发布时间: 20251209
...ader.getRes("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); //将当前的坐标向上移动32 方便后面处理人物的位置 this.bg.y = -32; this.addChild(this.bg); } this.bg.graphics.drawTexture(this.bgTexture, 0, 0, 960, 96); //创建一个帧循环处理函...
来源: Laya_社区 发布时间: 20160728
app打包后黑屏 检查后找到原因是因为这一句:this.graphics.alpha(0.7); 请问是什么原因,项目在下面 附件 : --> layer.rar 2017-02-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuix...
来源: Laya_社区 发布时间: 20170207
...l[angelLel].y, data.angel[angelLel].w , data.angel[angelLel].h); this.ball.graphics.drawTexture(tBall, 0,0,548,305); this.tower.graphics.drawTexture(tTower, 0, 0, data.tower[towerLel].w , data.tower[towerLel].h); this.aeroboat.graphics.drawTexture(tAeroboat,0,0, data.aeroboat.w, data.aeroboat.h); th...
来源: Laya_社区 发布时间: 20170720
...形 ### 一、用drawRect方法绘制矩形 在API中搜索`laya.display.Graphics`类可以查看到该API的各种矢量绘图方法。其中"drawRect();"方法用于绘制矢量矩形。该方法的详细说明如下图所示:  (图1) 下面我们用LayaAir引...
来源: Laya2.0_文档 发布时间: 20210715
UI编辑器里面创建了一个Graphics line,如何能获取组件编辑的的 points数据 UI编辑器里面创建了一个Graphics line,如何能获取组件编辑的的 points数据,如图? 附件 : --> 2019-02-28 添加评论 已悬赏15元 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20190228
...使用; flash环境下: 1、静态遮罩 var sp:Sprite=new Sprite(); sp.graphics.beginFill(0xFFFF00); sp.graphics.drawRect(0,0,200,200); sp.graphics.endFill(); addChild(sp); var mask:Sprite=new Sprite(); mask.graphics.beginFill(0xFF0000); mask.graphics.drawCircle(0,0,50); mask.graphics.endFill(); ...
来源: Laya_社区 发布时间: 20170207