• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 770 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0071 秒)

181. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 75%]

...并添加到舞台 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

182. 图片通过drawTexture平铺出现缝隙 [ 75%]

...t: Texture = Laya.loader.getRes("load/0.png");         this.darwSprite.graphics.drawTexture(t,0,0);         this.darwSprite.graphics.drawTexture(t,176,0);         this.darwSprite.graphics.drawTexture(t,176*2,0);   采用这方式在sprite内部绘制了3个一样的png,每一个宽度...

来源: Laya_社区 发布时间: 20160718

183. Panel中添加图片无法显示,文本可以 [ 75%]

...r.getRes("comp/image.png");     var ape1 = new Laya.Sprite();     ape1.graphics.drawTexture(t, 0, 0);     Laya.stage.addChild(ape1);     //面板     var panel = new laya.ui.Panel();     panel.width = 500;     panel.height = 500;     panel.x = 200;     var label = new laya.ui.Label...

来源: Laya_社区 发布时间: 20170401

184. 通过循环加载图片问题 [ 75%]

...一个可视对象然后通过addChild方法添加到sprite里,想用graphics.drawTexture方法,因为那种方法在获得sprite的高度和宽度方面有点问题 2016-10-27 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 1、如何在Loaded回调下添加dialog,你可以通过...

来源: Laya_社区 发布时间: 20161027

185. 扇形遮罩问题。 [ 75%]

... var sp:Sprite = new Sprite(); Laya.stage.addChild(sp); sp.alpha = 0.8; sp.graphics.drawRect(50,50,50,50,"#ff0000"); var sp1:Sprite = new Sprite(); sp1.alpha = 0.5; //Laya.stage.addChild(sp1); //画扇形 当这个扇形画的角度是 0-360度时 舞台上红色矩形见了 sp1.graphics.drawPie(...

来源: Laya_社区 发布时间: 20180111

186. laya.d3.core.scene.VRScene [ 74%]

...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 表示显示对象的高度,以像素为单位。 高度默...

来源: laya_api 发布时间: 20170422

187. 关于Laya.loader.load和getRes的问题 [ 74%]

...es("../../../../res/apes/monkey2.png"); var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); })); 这可以正常运行,但是我把外面的 load 函数去掉,将第二个参数中的函数内容独立后却显示图片:var t:Textur...

来源: Laya_社区 发布时间: 20170804

188. LayaNative2.0 beta3 单像素图片平铺绘制失败 [ 74%]

...test.png");// 此图宽度只有1像素,横着平铺绘制无法显示 p.graphics.fillTexture(tex, 0, 0, 100, tex.height);// 无法显示 p.graphics.drawTexture(tex, 0, 0, 100, tex.height);// 正常显示   忘记说明了,native上显示有问题,网页是正常的 2018-10-25 添加评论 ...

来源: Laya_社区 发布时间: 20181025

189. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 74%]

... maskArea: Laya.Sprite = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.name = "maskArea"; this.guideContainer.addChild(maskArea); this.interactionArea = new Laya.Sprite(); this.interactionArea.blendMode = "destinat...

来源: Laya_社区 发布时间: 20171222

190. laya.particle.Particle2D [ 74%]

...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 显示对象的高度,单位为像素,默认为0。 此高...

来源: laya_api 发布时间: 20170929