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

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

31. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 75%]

...(); Laya.stage.addChild(this._scene); var camera:Laya.Camera = this._scene.getChildByName("Main Camera") as Laya.Camera; camera.addComponent(CameraMoveScript); var tiger:Laya.Sprite3D = this._scene.getChildByName("tiger_idle") as Laya.Sprite3D; console.log(tiger); var animator:La...

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

32. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 75%]

...Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(...

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

33. 射线检测报错,outHitInfo.sprite3D=null; [ 74%]

...load(owner : any):void{ this.scene = owner; this.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); }  public _start(state:Laya.RenderState):void{ this.ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vector3.ZERO); thi...

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

34. 视频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...取场景中要添加视频纹理的3D节点 this.videoPlane = this.scene.getChildByName("Plane") as Laya.Sprite3D; //使用指定路径的视频文件 this.createVideo("resources/mov_bbb.mp4"); } //创建视频纹理并将其应用到Sprite3D上 private createVideo(url: string): void { //设置纹...

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

35. 3D场景-地形场景 [ 74%]

...e.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Scenes").getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox3/skyCube.ltc"); cam...

来源: Laya_示例 发布时间: 20251130

36. 粒子特效,播放与克隆有bug [ 73%]

...1/LayaScene_zhadan/Conventional/zhadan.ls")) as Scene3D; let spCore = sp3d.getChildByName("Canvas") as Sprite3D; spCore.transform.localPosition = new Vector3(0, 0.7, 90); let tp3d = Sprite3D.instantiate(spCore, lf, false, new Vector3(0, 2, 90)); Laya.stage.addChild(tp3d); //Sprite3D 克隆还是会...

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

37. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...某个名字的子节点,通常会调用如下方法来获取子节点 getChildByName("xxx") /** * 根据子节点的名字,获取子节点对象。 * @param name 子节点的名字。 * @return 节点对象。 */ getChildByName(name: string): Node { for (let child of this._children) { if (child...

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

38. Unity导出插件导出的模型中Transform值有误 [ 73%]

...0,0 导出成ls以后,通过打印节点:let colliderItem = this._rootNode.getChildByName("XCD_zhazhiji") as Laya.Sprite3D; console.log(colliderItem.transform.localRotationEuler);得出结果: 附上导出以后ls源文件截图:   另外这个模型有点特殊,这个节点(XCD_zhazhiji)的旋转...

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

39. 发射射线检测不到,物体有包围盒 [ 72%]

...     self.owner.addChild(scene3d);              var lv = scene3d.getChildByName("--- GAMEPLAY ---").getChildByName("Levels Parent");              // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.create(null, function (sp) {                        ...

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

40. laya.d3.core.light.PointLight [ 72%]

...:int):Node 根据子节点的索引位置,获取子节点对象。 Node getChildByName(name:String):Node 根据子节点的名字,获取子节点对象。 Node getChildIndex(node:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponentByIndex(index:int):Component3...

来源: laya_api 发布时间: 20170929