大约有 164 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0102 秒)
...ameLoop(1, this, ()=> { angle +=1; if(angle > 360) { angle = 0; } sp.graphics.clear(); sp.graphics.drawPie(128,128,128,0,angle,"0xff0000"); var tex = sp.drawToTexture(256,256,0,0); //var html:Laya.HTMLCanvas = sp.drawToCanvas(256,256,0,0); //img.loadImageSource(html.source,true); //html.clear(...
来源: Laya_社区 发布时间: 20190520
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite group : String组名称Dialog height : Number[override] 显示对象的高...
来源: Laya2.0_api 发布时间: 20190513
...于优化求助思路,运行时log 内存500M多,IPhone6还是卡死 graphics 问题求助 求助unity导出特效 到 laya box 里 list容器隐藏scrollBar的问题 问题状态 最新活动: 2017-02-16 11:56 浏览: 1745 关注: 2 人 q395212409 • 2017-02-16 12:57 已经用list 和item 解...
来源: Laya_社区 发布时间: 20170216
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 表示显示对象的高度,以像素为单位。 高度默...
来源: laya_api 发布时间: 20170422
...le=false的对像也统计进去了,网页端就没有问题 如何清除graphics绘制的矢量图 问题状态 最新活动: 2018-04-16 10:50 浏览: 1207 关注: 2 人
来源: Laya_社区 发布时间: 20180414
...代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手机的safari扫码功能运行项目 3秒中之...
来源: Laya_社区 发布时间: 20191215
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 显示对象的高度,单位为像素,默认为0。 此高...
来源: laya_api 发布时间: 20170929
...有两种方式。 分别是Text文本类的文本统一提交方式,和Graphics类的fillText文本单字符绘制提交方式。 如果采用了Text文本,那每一个Text文本对象中的文本字符会一起形成小图集提交到大图合集中,比如游戏中某个文本对象有300字...
来源: Laya_社区 发布时间: 20240221
...有多种做法,而其间差异很有必要知道。 使用getBounds/ getGraphicBounds。 var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); getBounds可以满足多数多数需求,但由于其需要计...
来源: Laya3.0_文档 发布时间: 20251010
...() { super(); this.init(); } init() { this.bg = new Laya.Sprite(); this.bg.graphics.drawRect(0, 0, 200, 200, '#ccc'); this.addChild(this.bg); this.htmlTxt = new Laya.HTMLDivElement(); this.htmlTxt.style.fontSize = 20; this.htmlTxt.style.width = 200; this.htmlTxt.style.borderColor = '#000'; this.html...
来源: Laya_社区 发布时间: 20210107