大约有 196 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)
Laya3.0_api(79) Laya_社区(64) Laya2.0_文档(17) Laya2.0_api(15) laya_api(14) Laya_示例(4) Laya3.0_文档(3)
...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
...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
...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
...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
...某个名字的子节点,通常会调用如下方法来获取子节点 getChildByName("xxx") /** * 根据子节点的名字,获取子节点对象。 * @param name 子节点的名字。 * @return 节点对象。 */ getChildByName(name: string): Node { for (let child of this._children) { if (child...
来源: Laya3.0_文档 发布时间: 20240624
...0,0 导出成ls以后,通过打印节点:let colliderItem = this._rootNode.getChildByName("XCD_zhazhiji") as Laya.Sprite3D; console.log(colliderItem.transform.localRotationEuler);得出结果: 附上导出以后ls源文件截图: 另外这个模型有点特殊,这个节点(XCD_zhazhiji)的旋转...
来源: Laya_社区 发布时间: 20190320
... 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
...:int):Node 根据子节点的索引位置,获取子节点对象。 Node getChildByName(name:String):Node 根据子节点的名字,获取子节点对象。 Node getChildIndex(node:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponentByIndex(index:int):Component3...
来源: laya_api 发布时间: 20170929
...:int):Node 根据子节点的索引位置,获取子节点对象。 Node getChildByName(name:String):Node 根据子节点的名字,获取子节点对象。 Node getChildIndex(node:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponentByIndex(index:int):Component3...
来源: laya_api 发布时间: 20170929
...始缩小 关于发布oppo、vivo快游戏,无法生成Rpk问题 使用getChildByName()无法得到子节点对象 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 问题状态 最新活动: 2017-09-15 10:33 浏览: 1962 关注: 2 人 1560480692用户 • 2019-06-20 19:...
来源: Laya_社区 发布时间: 20170915