大约有 60 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0043 秒)
...convert3DCoordTo2DScreenCoord(translate, convertTranslate); mesh.transform.localPosition = convertTranslate; 这里明明就是将一个屏幕坐标,转换成了一个3d坐标,然后再赋给了mesh的localPosition 2016-12-15 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...
来源: Laya_社区 发布时间: 20161215
...及缩放。 pangzi.transform.localRotation = _rotation; pangzi.transform.localPosition = _position; pangzi.transform.localScale = _scale; ``` 点击事件中的部分挂点的移除代码: ```typescript //将role从龙2的节点上移除 dragonAnimator2.unLinkSprite3DToAvatarNode(role); aniSprte3...
来源: Laya2.0_文档 发布时间: 20210714
...sphere-Sphere001.lm"))) as Laya.MeshSprite3D; mesh.transform.localPosition = new Laya.Vector3(-0.3, 0.0, 0.0); mesh.transform.localScale = new Laya.Vector3(0.5, 0.5, 0.5); } } new StaticModel_MeshSample();报错如下: TypeError: Cannot read property 'AnimationPl...
来源: Laya_社区 发布时间: 20161201
...; 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 克隆还是会报错 2019-11-26 0 0 分享 微博 QZONE 微信 Laya_Aa...
来源: Laya_社区 发布时间: 20191126
...me("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加到摄像机上 var moveScript = camera.addComponent(LightMoveScript); //获取操作的灯光数组 va...
来源: Laya2.0_文档 发布时间: 20210715
...me("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加到摄像机上 var moveScript = camera.addComponent(LightMoveScript); //获取操作的灯光数组 va...
来源: Laya2.0_文档 发布时间: 20210715
...amera") as Camera; camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加到摄像机上 var moveScript: LightMoveScript = camera.addComponent(LightMoveScript) as LightMoveScript; /...
来源: Laya2.0_文档 发布时间: 20210714
...if (child.name == nodeName) { child.addChild(Sprite3D); Sprite3D.transform.localPosition = new Laya.Vector3(); return true; } else { if (this.link2Node(nodeName, child, Sprite3D)) { return true; } } index++; } return false; } public static unLink2Node(Sprite3D: Laya.Sprite3D) { Sprite3D.removeSelf...
来源: Laya_社区 发布时间: 20190918
...tLightCom = spotLight.addComponent(Laya.SpotLightCom); spotLight.transform.localPosition = new Vector3(0.0, 9.0, -35.0); spotLight.transform.localRotationEuler = new Vector3(-15.0, 180.0, 0.0); spotLightCom.color.setValue(Math.random(), Math.random(), Math.random(), 1); spotLightCom.range = 50; spot...
来源: Laya3.0_文档 发布时间: 20241014
...点类型 public p3d: Laya.Sprite3D; onAwake(): void { this.p3d.transform.localPosition = new Laya.Vector3(0,5,5); let p3dRenderer = this.p3d.getComponent(Laya.ShurikenParticleRenderer); p3dRenderer.particleSystem.simulationSpeed = 10; } 通过暴露@property( { type :Laya.Sprite3D } )节点类型...
来源: Laya3.0_文档 发布时间: 20241014