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

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

41. 我就在unity中加了一个cube,导出后,在laya预览中怎么会有2个cube,而且位置还不一样,也没有贴图 [ 68%]

...ild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.ambientColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Laya....

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

42. 3D 鼠标检测 错乱 [ 67%]

...te方法为 _update() { var i=0,n=0,j=0,m=0; n=this._eventList.length; var cameras=this._scene._cameraPool; if (n > 0){ for (i=0;i < n;i++){ var e=this._eventList; switch (e.type){ case "mousedown": this._mouseTouchDown(); break ; case "mouseup": this._mouseTouchUp(); break ; case "mousemove":...

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

43. 摄像机如何旋转后 回到旋转之前的视角 [ 67%]

摄像机如何旋转后 回到旋转之前的视角 摄像机旋转camera.transform.rotate(new Laya.Vector3(0.15, -5.95, 0.015)); 之后通过camera.transform.rotate(new Laya.Vector3(-0.15, 5.95, -0.015)); 不能回到原来的视角 2018-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信...

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

44. 3d 轮廓描边示例改描边颜色无效 [ 67%]

...边颜色,这种能实现吗?         createDrawMeshCommandBuffer(camera:Camera,renders:BaseRender[],materials:Material[]):CommandBuffer{ var buf:CommandBuffer = new CommandBuffer(); //当需要在流程中拿摄像机渲染效果的时候 设置true camera.enableBuiltInRenderTexture = true;...

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

45. 天空盒子上想加交互热点怎么加? [ 64%]

...对不上。 如何制作天空盒所需的.ltc文件 【文档错误】3D Camera文档添加天空盒错误 跪求登陆注册数据交互的demo或者格式啊!!或者其他功能的数据交互也行啊 2.0版本天空盒子不显示 怎么做天空盒透明度的渐变,想做两个天空...

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

46. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 63%]

...aya.Scene; /*3D角色*/ private role:Laya.Sprite3D; /*3D摄像机*/ public camera:Laya.Camera; constructor() { //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage...

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

47. 自定义shader-shader预编译 [ 63%]

...et; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.resource.models.Mesh; import laya.d3.shader.ShaderCompile3D; imp...

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

48. 多点触控的使用(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 62%]

...r = Vector2.scalarLength(disVector2); //根据移动的距离进行缩放 _camera.transform.translate(new Vector3(0, 0, -0.01 * (distance2 - distance))); distance = distance2; } } else if (0 === touchCount){ _text.text = "触控点归零"; first = true; lastPosition.x = 0; lastPosition.y = 0; first ...

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

49. 多点触控的使用(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 62%]

...2.scalarLength(this.disVector2); //根据移动的距离进行缩放 this._camera.transform.translate(new Laya.Vector3(0, 0, -0.01 * (this.distance2 - this.distance))); this.distance = this.distance2; } } else if (0 === touchCount){ this._text.text = "触控点归零"; this.first = true; this.lastPo...

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

50. 多点触控的使用(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 62%]

...2.scalarLength(this.disVector2); //根据移动的距离进行缩放 this._camera.transform.translate(new Laya.Vector3(0, 0, -0.01 * (this.distance2 - this.distance))); this.distance = this.distance2; } } else if (0 === touchCount){ this._text.text = "触控点归零"; this.first = true; this.lastPo...

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