大约有 130 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0039 秒)
...0, 0.1, 10)); vrCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; vrCamera.addComponent(VRCameraMoveScript); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var earth = scene.a...
来源: Laya_示例 发布时间: 20250220
... 100)) as Camera; camera.transform.translate(new Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状态。 (图2) 在场景显示出来后,我们可以看到在 **Stat** 面板中 **GPUMemory** 有一个比较明显的涨幅。...
来源: Laya2.0_文档 发布时间: 20210715
...; camera.transform.translate(new Laya.Vector3(-5, 20, -30), false); camera.addComponent(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { setCustomMaterial(scene.getChildAt(2)); }); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var m...
来源: Laya_示例 发布时间: 20250220
...Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状态。 (图2) 在场景显示出来后,我们可以看到在 **Stat** 面板中 **GPUMemory** 有一个比较明显的涨幅。...
来源: Laya2.0_文档 发布时间: 20210715
...sform.position =new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = ...
来源: Laya_社区 发布时间: 20190224
...点光源 let pointLight = new Laya.Sprite3D(); let pointCom = pointLight.addComponent(Laya.PointLightCom); this.scene.addChild(pointLight); //点光源的颜色 pointCom.color = new Laya.Color(1.0, 0.5, 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new La...
来源: Laya3.0_文档 发布时间: 20250103
...sform.position =new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = ...
来源: Laya_社区 发布时间: 20170714
...添加到你预制体中的相机上<Laya.Camera>dude1.getChildAt(0).addComponent(CameraMoveScript); 2020-11-25 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 小火火 相关问题 请问在layaIDE里,...
来源: Laya_社区 发布时间: 20201125
...pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){ qb_pet.addComponent(Laya.SphereCollider); }); 设置射线: Laya.timer.frameLoop(1, null, checkHit); var hit = new Laya.RaycastHit(); var point = new Laya.Vector2(); var ray = new Laya.Ray(new Laya....
来源: Laya_社区 发布时间: 20170915
... new Laya.Sprite3D(); cjd0.addChild(this.camera); map.addChild(cjd0); cjd0.addComponent(CameraMoveScript); 可是,这样添加的脚本旋转,键盘就用不了,应该怎么控制他放大缩小 2018-04-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20180410