大约有 1,017 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0071 秒)
Laya_社区(720) Laya3.0_api(64) Laya2.0_api(59) laya_api(56) Laya2.0_文档(43) Laya2.0_示例(32) Laya_示例(32) Laya3.0_文档(11)
Graphics下如果只绘制了一个对象,其cmds是null 如下面示例,Graphics上必须绘制2个或2个以上的对象,cmds才有值,只绘制一个对象时cmds为null; 当只绘制了一个对象时我也想获取cmds的值怎么办,官方能不能升级一下,拜托 附件 :...
来源: Laya_社区 发布时间: 20171107
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 显示对象的高度,单位为像素,默认为0。 此高...
来源: laya_api 发布时间: 20170929
...博 QZONE 微信 mrchenx 赞同来自: var _parent = new Sprite(); _parent.graphics.drawRect(0, 0, 500, 500, '#ff0000'); Laya.stage.addChild(_parent); var _child = new Sprite(); _child.graphics.drawRect(0, 0, 50, 50, '#336699'); _parent.addChild(_child);就像上面那样,我需要在addChild的...
来源: Laya_社区 发布时间: 20170222
...I DocumentationAll Packages | All Classes | Index | Frames No Frames GraphicsProperties | Methods Packagelaya.displayClasspublic class GraphicsInheritanceGraphics Object Graphics 类用于创建绘图显示对象。Graphics可以同时绘制多个位图或者矢量图,还可以结合save...
来源: Laya2.0_api 发布时间: 20190513
...var box = new Laya.Sprite(); var texture = Laya.loader.getRes(boxstr); box.graphics.drawTexture(texture); var arr = {data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]); var _proto = StorageUILayer.prototype; _proto.onclick = function(params){ co...
来源: Laya_社区 发布时间: 20171113
...定的路径数据绘制出图案均可使用LayaAir引擎中laya.display.Graphics类的“drawpoly();”方法实现。该方法的详细说明如下图所示:  (图1) ### 一、绘制三角形 下面我们用LayaAir引擎先绘制一个三角形,示例代码...
来源: Laya2.0_文档 发布时间: 20210715
...oader.getRes(maskPath); let bg = new Sprite(); Laya.stage.addChild(bg); bg.graphics.drawTexture(bgRes); let bg2 = new Sprite(); Laya.stage.addChild(bg2); bg2.graphics.drawTexture(bgRes); bg2.scale(3, 3); // 创建mask let maskSp = new Sprite(); maskSp.graphics.drawTexture(maskRes); maskSp.pivot(50, ...
来源: Laya2.0_示例 发布时间: 20260303
...: 1、 p1.x = p2.x = Point.interpolate(value, p4, .5).x; 2、 target.graphics.beginBitmapFill(srcbmd, mx, true); target.graphics.moveTo(p1.x, p1.y); target.graphics.lineTo(p2.x, p2.y); target.graphics.lineTo(p3.x, p3.y); target.graphics.lineTo(p4.x, p4.y); target.graphic...
来源: Laya_社区 发布时间: 20160627
...绘的切下来的部分,但黄色的原图一直还在,即便调用了graphics.clear()方法 这是我重绘部分的代码,我是应该用sprite.graphics去重绘,还是该调用Laya.Render.context中的方法去重绘,绘制部分代码如下(points,是我裁切后的多边形位...
来源: Laya_社区 发布时间: 20200428
...并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),150,50); //添加到舞台 Laya.stage.addChild(this....
来源: Laya2.0_文档 发布时间: 20210715