大约有 88 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0039 秒)
... //-----self-libs----- loadLib("libs/common/Tool.js") loadLib("libs/common/CameraMoveScript.js") loadLib("js/bundle.js"); 测试安卓平台打包异常 具体日志 10-15 16:43:46.702: I/LayaBox(3503): alert=出错啦,请把此信息截图给研发商 10-15 16:43:46.702: I/LayaBox(3503): Typ...
来源: Laya_社区 发布时间: 20181015
...etChildByName("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:Laya.Animator = tiger.getComponentByIndex(0) as Laya.Animator; animator.play(&...
来源: Laya_社区 发布时间: 20180317
...,物体位置创建一个名为cameraroot 的sprit3D,给它添加一个cameraMoveScript脚本组件,然后cameraroot.addchild创建一个摄像机,设置好摄像机的默认位置角度使其朝向物体就行了 2017-07-14 1 1 分享 微博 QZONE 微信 183*****755 赞同来自: 需要...
来源: Laya_社区 发布时间: 20170714
...camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状态。 (图2) 在场景显示出来后,我们可以看到在 **Stat** 面板中 **GPUMemory** 有一个比较明显的涨幅。 然后我们...
来源: Laya2.0_文档 发布时间: 20210715
...); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(VRCameraMoveScript); /* var camera = (scene.addChild(new Laya.Camera())); camera.transform.translate(new Laya.Vector3(93, 64, -33)); camera.transform.rotate(new Laya.Vector3(0.05, 155, 0), true, false); camera.clearColor = null...
来源: Laya_社区 发布时间: 20170707
... 0), false, false); //相机视角控制组件(脚本) camera.addComponent(CameraMoveScript); //添加光照 var directionLight = _scene.addChild(new Laya.DirectionLight()); //光照颜色 directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3(-3.14 / 3, 0...
来源: Laya2.0_文档 发布时间: 20210715
官方案例里摄像机绕物体旋转脚本的问题 官方案例里的CameraMoveScripts在2.0版本下有很多接口,属性不存在。比如this.camera.moveForward、 super._initialize(owner)、super._update(state)等,放在1.7版本里是有的。是不是LayaAir.d.ts有修改。现在有...
来源: Laya_社区 发布时间: 20190224
...era.transform.rotate(this._rotation, true, false); moveCamera.addComponent(CameraMoveScript); //设置鼠标弹起事件响应 Laya.stage.on(Event.MOUSE_UP, this, function (): void { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.p...
来源: Laya3.0_文档 发布时间: 20230303