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

大约有 3,244 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0072 秒)

371. 材质-BlinnPhong-高光贴图 [ 78%]

...(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); v...

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

372. webview · LayaAir3.0文档 · LAYABOX [ 78%]

...。 canclose参数用来控制这个webview是否能被关掉: 设置为false时: 代码如下: document.addEventListener('touchstart',()=>{ if(conch){ var l = 50; var t = 50; var w = window.innerWidth - l * 2; var h = window.innerHeight - t * 2; conch.setExternalLinkEx('http://www.layabox.co...

来源: Laya3.0_文档 发布时间: 20230303

373. laya.device.motion.Gyroscope [ 78%]

...atcher  off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher[override] 取消指定处理器对陀螺仪的监视。 Gyroscope offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 EventDispatcher ...

来源: laya_api 发布时间: 20170929

374. [LayaAir3]Laya.Sprite3D的active的bug [ 78%]

...它们随着和相机之间的夹角变化,会自动给active设true或false 那么由于它们非常靠近嘛,就应当差不多同时出现同时消失的对吧 可事实上,那第二个创建的精灵不会消失,关键我按空格,将其active打印出来了,就是false了 如图右...

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

375. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 78%]

...        camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);                      //创建平行光         var directionLight = new Laya.DirectionLight();         scene.addChild(directionLight);         //设置平行光颜色    ...

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

376. 2.3.0beta版本,代码有错误还能编译成功 [ 78%]

...默认为打开 ``` typescript({                 check: false, //Set to false to avoid doing any diagnostic checks on the code                 tsconfigOverride:{compilerOptions:{removeComments: true}}             }), ``` 改为: typescript({ ...

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

377. 事件管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 78%]

...类型是否有侦听者,如果有侦听者则值为 true,否则值为 false。 */ event(type: string, data: any = null) 用于派发事件,例如我们可以在代码中来派发一个CLICK事件 : //侦听ui按钮点击事件 this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打...

来源: Laya3.0_文档 发布时间: 20251010

378. Maximum call stack size exceeded [ 78%]

...nstance = this;               Laya.MouseManager.multiTouchEnabled = false;               this.loadScene("main.scene");           }           onEnable() {             console.log('init');         }     }       /**This class is automatically generated by LayaAirI...

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

379. 材质-BlinnPhong-法线贴图 [ 78%]

...(0, 0.6, 1.1)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); Laya.loader.create("../../res/threeDimen...

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

380. IDE创建3D示例项目(JavaScript-3D基础(JS)-快速开始一个LayaAir3D项目) [ 78%]

...tor3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new L...

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