大约有 831 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0072 秒)
Laya_社区(671) Laya2.0_文档(61) Laya_示例(34) Laya3.0_文档(31) Laya2.0_示例(30) Laya3.0_api(3) Laya2.0_api(1)
...ist.splice(index,1); } } public function GetHandler(key:String):IHandler { for(var i:int=0;i<list.length;i+=1) { var handler:IHandler=list.GetHandler(key); if(handler!=null){ return handler; } } return null; } public function Send(data:String):void { socket.send(data); } private function onSock...
来源: Laya_社区 发布时间: 20170724
...lay应用商店。然后在应用商店里搜索安装Google Play Services For AR与Google VR服务。 运行环境不必和本篇完全一样,能安装好Google Play应用商店,和最新版的Chrome浏览器(安卓)即可。 完成以上准备后,才可以正常显示基于webXR标准的...
来源: Laya3.0_文档 发布时间: 20251010
...it('/'); if(names[0]=="http:"||names[0]=="https:"){ filename=names[0]+"/"; for(var i=1;i<names.length;i++){ filename+=('/'+names[i]); } } xhr.open("GET", filename); xhr.send();我是这么改的,可以成功把消息发出去了,但是解析又出了问题 gameThirdScriptError Cannot read pro...
来源: Laya_社区 发布时间: 20180704
...K,移动端没试,有问题调试着改一改就OK啦。。import Transform3D = Laya.Transform3D; import Vector3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera...
来源: Laya_社区 发布时间: 20170714
...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
...ts在2.0版本下有很多接口,属性不存在。比如this.camera.moveForward、 super._initialize(owner)、super._update(state)等,放在1.7版本里是有的。是不是LayaAir.d.ts有修改。现在有别的接口,方法替代吗,我在官方文档里找了好久都没找到。或者...
来源: Laya_社区 发布时间: 20190224
...找出所有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
...字。 * @return 节点对象。 */ getChildByName(name: string): Node { for (let child of this._children) { if (child && child.name === name) return child; } return null; } 当我们找到子节点时,也可以对节点做一些基础操作,比如删除掉自己方法 removeSelf() /** *...
来源: Laya3.0_文档 发布时间: 20251010
...Sprite世界矩阵(为可行走区域世界矩阵) this.terrainSprite.transform.worldMatrix = meshSprite3D.transform.worldMatrix; //给terrainSprite添加PathFind组件 var pathFingding = this.terrainSprite.addComponent(Laya.PathFind); pathFingding.setting = { allowDiagonal: true, dontCrossCorners: ...
来源: Laya_示例 发布时间: 20260303
... 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、DirectionLight Direction Light(平行光)与点光区别较大,它有固定的一个方向,可通过弧度值设定,并且也没有衰减和光照范围,会对...
来源: Laya3.0_文档 发布时间: 20251010