大约有 769 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0072 秒)
Laya_社区(539) Laya3.0_api(65) Laya2.0_api(59) laya_api(55) Laya2.0_文档(30) Laya3.0_文档(11) Laya2.0_示例(5) Laya_示例(5)
...mera.renderTarget as Texture; var sp:Sprite = new Sprite(); sp.x = 800; sp.graphics.drawTexture(texture,0,0,100,100); Laya.stage.addChild(sp); 2017-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying ...
来源: Laya_社区 发布时间: 20170510
...ow.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _this.pivotX = _this.row_data.property.x_m * texture.sourceWidth _th...
来源: Laya_社区 发布时间: 20180530
...is.aniFly); //创建按钮 this.btn = new Sprite().size(205, 55); this.btn.graphics.drawRect(0, 0, this.btn.width, this.btn.height, "#057AFB"); this.txt = new Text(); this.txt.text = "销毁"; this.txt.pos(75, 15); this.txt.fontSize = 25; this.txt.color = "#FF0000"; this.btn.addChild(this.txt); this...
来源: Laya_示例 发布时间: 20260303
...s.aniFly); // 创建按钮 this.btn = new Sprite().size(205, 55); this.btn.graphics.drawRect(0, 0, this.btn.width, this.btn.height, "#057AFB"); this.txt = new Text(); this.txt.text = "销毁"; this.txt.pos(75, 15); this.txt.fontSize = 25; this.txt.color = "#FF0000"; this.btn.addChild(this.txt); this...
来源: Laya2.0_示例 发布时间: 20260303
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite group : String组名称Dialog height : Number[override] 显示对象的高...
来源: Laya2.0_api 发布时间: 20190513
...人 赞同来自: 如果是Sprite的话loadImage之前先清理下:myImg.graphics.clear()。 如果是Image,直接设置skin即可,不会出现两张图片都显示出来的情况 2017-06-18 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...
来源: Laya_社区 发布时间: 20170618
.../ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.scaleY = 1 ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); let sp = new Sprite() sp.graphics.drawRect(0, 0, 50, 50, '#ffff000') ape.mask = sp })); } })(); 右边的...
来源: Laya_社区 发布时间: 20171220
...要接受鼠标事件 是不需要显示设置size的 如果是用sprite的graphic的drawTexture来显示图片 是需要显示设置size 才能接受鼠标事件 是不是这样 2017-02-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20170210
画完矢量矩形后如何再改变矩形颜色? 用graphics.drawRect()方法画矩形,参数设置了矩形颜色,之后我要不断改变矩形颜色怎么改? 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20180307
...的灯光不显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ graphics alpha 问题 位图字体不显示 问题状态 最新活动: 2017-09-14 20:29 浏览: 2508 关注: 5 人 hxj524 • 2017-01-11 10:12 可是用了这个方法后DIALOG原来的带的蒙版遮盖也会消失了 怎么...
来源: Laya_社区 发布时间: 20170105