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

大约有 360 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0056 秒)

171. Laya3.0 图片拼合缩放会导致两张图片之间有一条横线[已解决] [ 69%]

...    a.graphics.drawTexture(texture1, 0, 0);             this.owner.addChild(a)         });          Laya.loader.load("http://103.219.177.59:63344/%2 ... ot%3B, Laya.Loader.TEXTURE2D).then((texture: Laya.Texture2D) => {              //在U方向上使用WARPMODE_CLAMP    ...

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

172. 如何获取unity导出的摄像机 [ 69%]

...reateComplete(){ var land = Laya.loader.getRes("land/main.lh"); this.scene.addChild(land); var camera = land.getChildByName("Camera"); camera.addComponent(CMS);//控制脚本 console.log(camera); }         2019-06-08 0 0 分享 微博 QZONE 微信 为什么折叠? 0 个回复折叠 要回...

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

173. 2.8.0上默认模型不能产生和接受阴影 [ 69%]

....0设置阴影的代码: var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0)); directionLight.shadowMode = Laya...

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

174. Laya3D场景加载问题 [ 69%]

...der.getRes("gate/Conventional/Test.ls")         let scene = Laya.stage.addChild(test);         Laya.stage.setChildIndex(scene, 0);         //获取相机         var camera = scene.getChildByName("Main Camera");         console.log("test====================:" + Laya.version)   ...

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

175. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 69%]

...nish(): void { //初始化3D场景 this.scene = (<Scene3D>Laya.stage.addChild(Loader.createNodes("res/threeDimen/scene/TerrainScene/XunLongShi.ls"))); //根据场景中方块生成路径点 this.initPath(this.scene); //获取可行走区域模型 var meshSprite3D: MeshSprite3D = (<MeshSprit...

来源: Laya3.0_文档 发布时间: 20230303

176. 支付宝小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...gt; { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d.addChild(sp3); }); }) } printProgress(r...

来源: Laya3.0_文档 发布时间: 20250103

177. 从fbx转成lh文件后,加载报错 [ 68%]

...,用以下方式加载报错;fbxyua原文件已上传附件; scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/test/food05/food05.lh")));   附件 : --> food05.zip 2017-01-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

178. 3D+2D场景截屏,在不同浏览器显示效果不一致 [ 68%]

...pi.filters = spi1.filters = spi2.filters = [blurFilter]; this.owner.parent.addChild(spi); this.owner.parent.addChild(spi1); this.owner.parent.addChild(spi2); // }) }求教以下大佬们,是否还有其他的截屏方法(使用了drawToCanvas,因为3d场景对象比较复杂,无法实现预期...

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

179. dialog的popup方法不会关闭其他弹窗 [ 68%]

...new NormalDialog(context); this.normalDialog.popup(true, true); Laya.stage.addChild(this.normalDialog);  }  }     // 弹窗代码   class NormalDialog extends ui.normalDialogUI { constructor( text: string ) { super(); // 设置label文字 this.context.text = text; this.btn_close.on(Laya.Event.C...

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

180. 导出插件导出模型不能用 [ 68%]

...aScene.lh"], Laya.Handler.create(this, onComplete)); ... var shelf = scene.addChild(Laya.Sprite3D.load("LayaScene_layaScene/layaScene.lh")); shelf.transform.position = new Laya.Vector3(-18.69, 1.1, 43.8);                 但是无法加载出来,也没报错 附件 : --> t1.rar 2018-04-12 ...

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