大约有 90 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0032 秒)
...,物体位置创建一个名为cameraroot 的sprit3D,给它添加一个cameraMoveScript脚本组件,然后cameraroot.addchild创建一个摄像机,设置好摄像机的默认位置角度使其朝向物体就行了 var map: Laya.Sprite3D = Laya.loader.getRes("cj/cj.lh"); this.scene.addChil...
来源: Laya_社区 发布时间: 20180410
...or3(0, -1.0, -1.0); 或者是摄影机角度不对,被模型覆盖 添加CameraMoveScript.ts scene.currentCamera.addComponent(CameraMoveScript);旋转角度查看 2016-10-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 JUNLIU 相...
来源: Laya_社区 发布时间: 20161012
...ne); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加到摄像机上 var moveScript = camera.addComponent(LightMoveScrip...
来源: Laya2.0_文档 发布时间: 20210715
...ne); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加到摄像机上 var moveScript = camera.addComponent(LightMoveScrip...
来源: Laya2.0_文档 发布时间: 20210715
...form.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //camera.clearColor =null; //天空盒 var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("res/skyBox1/skyCube....
来源: Laya_社区 发布时间: 20181203
...form.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(...
来源: Laya_示例 发布时间: 20250221
...amera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加到摄像机上 var moveScript: LightMoveScript = camera.addComponent(Li...
来源: Laya2.0_文档 发布时间: 20210714
...a = this.moveSprite3D.addChild(new Laya.Camera()); moveCamera.addComponent(CameraMoveScript); moveCamera.transform.localPosition = new Laya.Vector3(0, 7, -7); moveCamera.transform.rotate(new Laya.Vector3(-45, 180, 0), true, false); Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { this.index = ...
来源: Laya_示例 发布时间: 20250221
... import laya.utils.Stat; import laya.utils.Timer; import threeDimen.common.CameraMoveScript; import threeDimen.common.CameraStat; import threeDimen.common.SpriteMoveScript; import threeDimen.common.SpriteStat; public class LayaAir3D { private var box:MeshSprite3D; private var sphereBody:Object; priv...
来源: Laya_社区 发布时间: 20170331
...new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SOLIDCOLOR; //方向光 let directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.color...
来源: Laya_社区 发布时间: 20201127