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

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

811. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 26%]

...prite.getComponent(componentType); if (comp != null) { lists.push(comp); } for (var i = 0; i < sprite.numChildren; i++) { let child = sprite.getChildAt(i) as Sprite; this.findCompents(lists, child, componentType); } } //组件被激活后执行,此时所有节点和组件均已创建完毕,...

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

812. 官方案例里摄像机绕物体旋转脚本的问题 [ 26%]

...ts在2.0版本下有很多接口,属性不存在。比如this.camera.moveForward、 super._initialize(owner)、super._update(state)等,放在1.7版本里是有的。是不是LayaAir.d.ts有修改。现在有别的接口,方法替代吗,我在官方文档里找了好久都没找到。或者...

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

813. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 25%]

...找出所有ui下的Button包括子节点下 searchButton(ui: Laya.Node) { for (let i = 0; i < ui.numChildren; i++) { let child = ui.getChildAt(i); if (child instanceof Laya.Button) { console.log("发现Button"); this.onButtonScaleEvent(child); } else { //查找子节点 this.searchButton(child);...

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

814. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 25%]

...字。 * @return 节点对象。 */ getChildByName(name: string): Node { for (let child of this._children) { if (child && child.name === name) return child; } return null; } 当我们找到子节点时,也可以对节点做一些基础操作,比如删除掉自己方法 removeSelf() /** *...

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

815. 高级应用-寻路导航 [ 24%]

...Sprite世界矩阵(为可行走区域世界矩阵) this.terrainSprite.transform.worldMatrix = meshSprite3D.transform.worldMatrix; //给terrainSprite添加PathFind组件 var pathFingding = this.terrainSprite.addComponent(Laya.PathFind); pathFingding.setting = { allowDiagonal: true, dontCrossCorners: ...

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

816. 3D灯光与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 24%]

... 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、DirectionLight Direction Light(平行光)与点光区别较大,它有固定的一个方向,可通过弧度值设定,并且也没有衰减和光照范围,会对...

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

817. LAYABOX游戏实时语音之APP版本 [ 23%]

...sterAudioPlayListener(mCallback); setStoragePath(); } public void LeavePlatform() { leaveChatRoom(); logout(); uninit(); } private void uninit(){ YIMService.getInstance().uninit(); } public void login( final String userId){ that = this;//反射需要指定的对像,在抛到主线程后this的对...

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

818. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 22%]

...影响,不会产生受力位移,运动刚体的位移只能通过transform改变节点坐标。 与2D的运动学类型刚体不同,LayaAir 3D的运动刚体脱离了物理引擎运动,即使设置速度也不可以使其位移。这样做的好处是减少了物理运算,节省了性能...

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

819. 构建app闪退,测试app扫码可以运行 [ 22%]

.../com.layabox.hello A/art: art/runtime/java_vm_ext.cc:470] t.src:function(){for(var e,t=document.scripts,i=t.length-1,n=i;n>0;n--)if("interactive"===t[n].readyState){e=t[n].src;break}retutTO 2019-03-15 08:45:13.438 8214-8265/com.layabox.hello A/art: art/runtime/java_vm_ext.cc:470] �|�`r��|...

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

820. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 20%]

...is.camera = this.owner as Laya.Camera; if (this.target) { this.target.transform.position.cloneTo(this.curpos); this.delatpos = new Laya.Vector3(); } } /** * 每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 * 此方法为虚方法,使用时重写覆盖...

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