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

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

161. 3D支持图集吗? [ 70%]

...xture = Laya.loader.getRes("magic/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture, 0, 0); Laya.stage.addChild(sp);   //3D加载图集 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(64, 64))) as Laya.MeshSprite3D; box.transform.rotate(new L...

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

162. laya.ui.Box [ 70%]

...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite gray : Boolean 是否变灰。Component height : Number[override] 表示显示...

来源: laya_api 发布时间: 20170929

163. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 70%]

...();     matrix.a = -1;     matrix.tx = 2*100+ t.width;     ape.graphics.drawTexture(t,100,100,t.width,t.height,matrix);     Laya.stage.addChild(ape);     ape.pos(0, 0);    }));   设置new一个Matrix 然后设置水平偏移量tx 将屏幕外的图像移回舞台   2017-02...

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

164. 浏览器和微信工具都截屏不了 [ 70%]

...a.Sprite();             sp2.x = 300;             sp2.graphics.drawTexture(_texture,0,0,100,100);             Laya.stage.addChild(sp2); 2019-02-15 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

165. laya.display.Animation_API3.0 [ 70%]

...nu Globals "laya/display/Animation" Animation Class Animation Animation 是Graphics动画类。实现了基于Graphics的动画创建、播放、控制接口。 本类使用了动画模版缓存池,它以一定的内存开销来节省CPU开销,当相同的动画模版被多次使用时,相比...

来源: Laya3.0_api 发布时间: 20231115

166. 关于切换图片的问题 [ 70%]

...; this.img.loadImage(this.plane1); Laya.stage.addChild(this.img); this.img.graphics.clear(); this.img.loadImage(this.plane2); Laya.stage.addChild(this.img) } } new Main(); 出来的结果是两张图合并到了一起, 于是我再尝试 constructor() { Laya.init(1000,800); this.img = new Laya.Spr...

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

167. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 70%]

...法绘制图片并添加到舞台 Laya.loader.load(Res,Handler.create(this,graphicsImg)); } private function graphicsImg():void { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.stage.addChild(img); } } } ```...

来源: Laya2.0_文档 发布时间: 20210714

168. Laya截图3D场景相关模型,导致模型透视! [ 70%]

...ra.transform.rotate(new Laya.Vector3(0, 180, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 5; this.effRes = Laya.Sprite3D.load(resUrl); this.effRes.on(Laya.Event.HIERARCHY_LOADED, this, function(){ this.eff1 = scene.addChild( Laya.Sprite3D.instantiate(this.effRes));...

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

169. laya.display.FrameAnimation [ 70%]

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

来源: laya_api 发布时间: 20170929

170. laya.ui.VBox [ 70%]

...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite gray : Boolean 是否变灰。Component height : Number[override] 表示显示...

来源: laya_api 发布时间: 20170929