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

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

31. 资源加载(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

32. 射线检测报错,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

33. 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_示例 发布时间: 20241002

34. 粒子特效,播放与克隆有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

35. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 73%]

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

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

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

37. 发射射线检测不到,物体有包围盒 [ 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

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

39. laya.d3.core.light.DirectionLight [ 72%]

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

来源: laya_api 发布时间: 20170929

40. 射线一直无法获取物体 [ 72%]

...始缩小 关于发布oppo、vivo快游戏,无法生成Rpk问题 使用getChildByName()无法得到子节点对象 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 问题状态 最新活动: 2017-09-15 10:33 浏览: 1962 关注: 2 人 1560480692用户 • 2019-06-20 19:...

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