• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 130 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0031 秒)

41. as3.0下3D引擎中通过滑动控制camera的问题 [ 77%]

...发现一个问题,官方示例中给出了这样一个代码,camera.addcomponent(CameraMoveScript);这里的CameraMoveScript是哪儿来的 2018-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron...

来源: Laya_社区 发布时间: 20180718

42. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 76%]

...象的内容的基类。在给物体添加组件时,需要物体使用`addComponent`方法。 ![](img/1.png)(图1) **Script3D** 这是3D世界中的脚本,继承自组件,是组件的一种。该类被定义为 '抽象类' ,不允许实例。该类提供了一系列虚方法。详细使用可...

来源: Laya2.0_文档 发布时间: 20210715

43. 动画-新版骨骼动画 [ 76%]

... camera.transform.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_示例 发布时间: 20241001

44. VR摄像机怎么设置坐标跟拍摄角度? [ 76%]

...Laya.Vector3(0.05, 155, 0), true, false); camera.clearColor = null; camera.addComponent(VRCameraMoveScript); 我这样跟传统的摄像机一样去设置报错了! 2017-07-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

来源: Laya_社区 发布时间: 20170707

45. 射线检测-点击行走 [ 76%]

...9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.mesh = plane.meshFilter.sharedMesh; var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.5, 0.5, 0.5))); var mat = new Laya.StandardMaterial(); mat.diffuseTexture = L...

来源: Laya_示例 发布时间: 20241001

46. unity 导出模型 [ 75%]

...ew Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; camera.addComponent(CameraMoveScript); var map=Laya.Sprite3D.load("H5/Main.lh"); scene.addChild(map);   2017-05-15 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 厉害,好的,有问题及时沟通! 2017-05-15 0 0 ...

来源: Laya_社区 发布时间: 20170515

47. 动画-旧版骨骼动画 [ 75%]

...ya.MeshSprite3D) { var meshSprite3D = spirit3D; var skinAni = meshSprite3D.addComponent(Laya.SkinAnimations); skinAni.templet = Laya.AnimationTemplet.load(skinAniUrl[0]); skinAni.player.play(); } for (var i = 0, n = spirit3D._childs.length; i = [ "../../res/threeDimen/skinModel/Zombie/old/Assets/Zom...

来源: Laya_示例 发布时间: 20241001

48. [BUG]刚体约束问题,移动后约束混乱! [ 75%]

...a.Rigidbody3D);          let configurableConstraint = this.boxA.addComponent(Laya.ConfigurableConstraint);      configurableConstraint.setConnectRigidBody(boxARigid,boxBRigid);     configurableConstraint.anchor = new Laya.Vector3(0, -2, 0);     configurableConstraint.con...

来源: Laya_社区 发布时间: 20210103

49. CameraMoveScript,父对象Camera移除removeAllComponent后,还会继续获取鼠标事件 [ 74%]

..._sceneCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.m_sceneCamera.addComponent(CameraMoveScript); this.stage.addChild(this.m_scene); this.m_scene.addChild(this.m_sceneCamera); 在destory的时候 this.stage.removeChild(this.m_scene); this.m_sceneCamera.removeAllComponent(); this.m_scene.des...

来源: Laya_社区 发布时间: 20171012

50. PBR标准材质实时阴影渲染问题 [ 74%]

...form.position = new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = Laya.Vector3._ZERO; var directionLight = (scene_360 as Laya.Node).getChildByName('Directional light') as Laya.DirectionLight; //灯光开启阴影 directionLight.shadow = tru...

来源: Laya_社区 发布时间: 20190813