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

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

561. 3d加载如果是非起始场景,场景加载报错,图片也不能加载出来 [ 70%]

...时候再场景runtime继承类中,构造函数里面加载图片 Laya.Texture2D.load("billiards/grass.png",会报错。 附件 : --> 2020-06-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 157*****593 赞...

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

562. drawToTexture截大图有问题,会丢失 [ 70%]

drawToTexture截大图有问题,会丢失 private nsp:Laya.Sprite;     init(): void {         this.nsp=new Laya.Sprite();         this.nsp.graphics.drawRect(0,0,1600,1600,"#ff0000");         this.nsp.mouseThrough=true;         Laya.stage.addChild(this.nsp);         this.nsp....

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

563. 3D两个平面拼接的贴图直接会有明显的接缝 [ 70%]

...是纹理采样使用了线性采样的原因的,2D的纹理可以使用Texture.isLinearSampling = false;来关闭线性采样,3d的纹理怎么关闭,下面是单个平面的创建代码   var plane: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(1 , 1, 1, 1))) as Laya.MeshSprite3D...

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

564. layabox有API直接从url生成二维码加载到精灵吗 [ 70%]

... 提交 3 个回复 cuixueying 赞同来自: 你可以获取到二维码的texture,然后让sprite进行drawTexture,没有直接给sprite的方法! 2017-03-08 0 0 分享 微博 QZONE 微信 sogetsu 赞同来自: 怎么从url生成二维码的texture 2017-03-08 0 0 分享 微博 QZONE 微信 La...

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

565. laya.map.TileAniSprite [ 70%]

...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...

来源: laya_api 发布时间: 20170929

566. Laya.Loader.getRes请教 [ 70%]

...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

567. parameter 2 is not of type 'WebGLTexture' [ 70%]

parameter 2 is not of type 'WebGLTexture'   var htmlC:HTMLCanvas = btn_edit.drawToCanvas(btn_edit.width, btn_edit.height, 0, 0); var interceptT:Texture = new Texture(htmlC); var img:Sprite = new Sprite; img.graphics.drawImage(interceptT, 0, 0, btn_edit.width, btn_edit.height); Laya.stage.addChild(...

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

568. unity导出 [ 70%]

...出工具是从技术文档里那个链接下载的 2:导出文件中没有texture文件夹,没有png图 3使用的unity是5.6.4 4使用的引擎是1.7.10beta 5游戏中调用接口报错 附件 : --> 2017-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

569. laya3d动态生成文字贴给模型材质时只有背景颜色生效 [ 70%]

...生成文字贴给模型材质时只有背景颜色生效 如图所示,Texture在精灵内是显示正常的,贴在材质上就只剩下背景颜色了   var te: Laya.Label = new Laya.Label("test"); te.fontSize = 200; te.color = "#000000"; te.bgColor = "#d90f0b";  jm.albedoTexture = te.size(50...

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

570. laya.d3.core.scene.VRScene [ 70%]

...自动更新缓存,只能通过调用reCache方法手动刷新。Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...

来源: laya_api 发布时间: 20170422