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

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

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

...性,这样操作起来是比较麻烦的。但是在3D中使用到的是scene场景中的`input:Input3D`3D输入属性,能在任何地方获取,使用起来是非常的方便的。 > **注意事项:**在多点触控的情况下,只会发射一条射线用于检测,该点是多个触碰...

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

52. 2.6.1物理bug [ 92%]

...数值,球和地面都设置了弹力   TestScript2  onAwake   this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCo...

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

53. 求助高手请进,关于场景导入的问题~ [ 92%]

...~ 正常的场景加载这样就能加载出来了Laya.loader.create("LayaScene_01/loveScene.ls",Handler.create(this,this.completeHandler)); private function completeHandler():void{     var scene:Scene = Laya.loader.getRes("LayaScene_01/loveScene.ls");     Laya.stage.addChild(scene); }   我现...

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

54. 材质的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 92%]

...格渲染器获取模型上的材质 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere"); //获取球型精灵自带的BlinnP...

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

55. 2.0版本可用的CameraMoveScript.ts [ 91%]

...er = 0.00006;     protected camera: Laya.BaseCamera;     protected scene: Laya.Scene3D;      constructor() {         super();      }      /**      * @private      */     protected _updateRotation(): void {         if (Math.abs(this.yawPitchRoll.y) &...

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

56. 用layaair如何加載蒙皮動畫,请问怎么加载.lm文件和.ani文件,有沒有實例可以看下 [ 91%]

....lm文件和.ani文件,有沒有實例可以看下 代碼如下: this.scene = Laya.stage.addChild(new Laya.Scene()); //加载相机 this.camera = this.scene.addChild(new Laya.Camera()); this.scene.CurrentCamera = this.camera; //男角色 this.roleMan = new Laya.MeshSprite3D(Laya.Mesh.load("3d/ma...

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

57. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 91%]

...this._prepareCameraToRender();这一行后面添加如下代码 if(this._scene.lightCullingMask && this._scene.lightCullingMask instanceof Function){this._scene.lightCullingMask(scene,this);} 3、对想要开启灯光裁剪的场景调用 LightCullingMask.enableLightCullingMask(scene3d)即...

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

58. 如何移动sprite3d [ 91%]

...1-25 11:41 浏览: 898 关注: 2 人 176*****233 • 2018-01-25 11:44 this.scene = new Laya.Scene(); this.pos = new Laya.Sprite3D(); this.scene.addChild(this.pos); this.camera = new Laya.Camera(); this.pos.addChild(this.camera); this.camera.transform.translate(this.cameraTrans, false); this.camera.t...

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

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

...,代码如下:// 程序入口 class LayaAir3D { /*3D场景*/ private scene:Laya.Scene; /*3D角色*/ private role:Laya.Sprite3D; /*3D摄像机*/ public camera:Laya.Camera; constructor() { //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(0, 0, true); //适配模式 ...

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

60. 3D网格添加刚体后设置欧拉角出现位置错误 [ 91%]

...;         this.tmpVector = new Laya.Vector3(0, 0, 0);         this.scene = Laya.stage.addChild(new Laya.Scene3D());         //初始化照相机         let camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100));         camera.transform.translate(new Laya.Vector3(0, 6, 9.5))...

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