大约有 1,726 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0172 秒)
Laya_社区(1387) Laya3.0_api(107) laya_api(68) Laya2.0_api(68) Laya2.0_文档(65) Laya3.0_文档(18) Laya_示例(8) Laya2.0_示例(5)
...r.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但是我换个默认的图集Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.createVie...
来源: Laya_社区 发布时间: 20180326
...方式解决该截图保存为图片的问题呢? 我尝试过用drawToTexture,但我找不到texture怎么转为图片保存起来的方法,麻烦指导一下,感激! 附件 : --> 2019-08-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20190807
...LCanvas = Laya.stage.drawToCanvas(600, 1000, 0, 0); let tex: laya.resource.Texture = canvas.getTexture(); let sp: Laya.Sprite = new Laya.Sprite(); sp.texture = tex; Laya.stage.addChild(sp); 附件 : --> 2019-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20191012
...是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer...
来源: laya_api 发布时间: 20170929
... ConchGraphics.prototype.setSkinMesh = function (ib, vb, eleNum, iStart, texture, mat) { var img = texture.source; var _ = conch.bf; if (ib.conch_id === undefined || !ib._upload) { ib.conch_id = CanvasRenderingContext2D.ID++; ib.conchRef = new ArrayBufferRef(); ib.conchRef.id = ib.conch_id; _.needsz...
来源: Laya_社区 发布时间: 20190806
...的宽高即可。如果更准确的回去宽高,那就在回调返回的texture里直接拿到图片的宽高信息就可以了。 2018-05-16 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 格桑 相关问题 请问LayaAir中如何使...
来源: Laya_社区 发布时间: 20180515
...11:44 行吧,我自己重写这块吧 shiyang • 2023-09-01 19:55 1.set texture方法可以传 字符串,但是目前只能通过转换成any才能不报错,原因d.ts里面只允许texture类型 2.运行场景应该显示大猩猩,结果显示layaair图片。原因是没有想image那样...
来源: Laya_社区 发布时间: 20230901
...Canvas(this.gridBox.width,this.gridBox.height,0,0); //获取截屏区域的texture this._tex = new Laya.Texture(this._htmlC); this._photo=new Laya.Sprite(); //将截屏的texture进行draw绘制并显示到舞台 this._photo.name="testtt"; this._photo.graphics.drawTexture(this._tex,0,0,this.gridBox....
来源: Laya_社区 发布时间: 20170502
...de='lighter' 图片异常 使用钢体设置防穿后仍有几率会穿透 Texture图片能否进行翻转? 图集打包找不到图集文件 matter中layasprite怎么改变图片大小? 如何通过命令行工具构建和发布项目 IDE1.7.8 json图集加载问题 问题状态 最新活动: 2...
来源: Laya_社区 发布时间: 20180401
...promise) TypeError: Cannot read property 'width' of null at Function.Texture._create (laya.core.js:15946) at Texture.__proto._onLoaded (laya.core.js:15750) at EventHandler.__proto.runWith (laya.core.js:1410) at ResInfo.__proto.event (laya.core.js:1166) at LoaderManager....
来源: Laya_社区 发布时间: 20200201