大约有 827 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0057 秒)
Laya_社区(668) Laya2.0_文档(61) Laya_示例(34) Laya3.0_文档(30) Laya2.0_示例(30) Laya3.0_api(3) Laya2.0_api(1)
...,200); var txt:String = ""; var tTxt:String; var tHTMLElement:HTMLElement; for(var i:int = 0,n:int = htmlDiv._childs.length;i < n;i++) { tHTMLElement = htmlDiv.getChildAt(i) as HTMLElement; if(tHTMLElement) { tTxt= tHTMLElement.text; if(tTxt) { txt += tTxt; } } } trace("文本内容为"+txt); tra...
来源: Laya_社区 发布时间: 20161027
...r; // 发布时调用编译,workSpaceDir使用publish.js里的变量 let forceCompile = !fs.existsSync(path.join(workSpaceDir, "bin", "js", "bundle.js")); // 发布时,并且没有编译过,则强制编译 if (!global.config.compile && !forceCompile) { return; } } return rollup.rollup(...
来源: Laya_社区 发布时间: 20200918
...); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-38, 180, 0), false, false); camera.transform.translate(new Laya.Vector3(-5, 20, -30), false); camera.addComponent(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { se...
来源: Laya_示例 发布时间: 20251209
...Options: -v, --version output the version number -h, --help output usage information Commands: compile compile project. publish publish project. help [cmd] display help for [cmd] ``` #### layaair2-cmd的帮助说明: 帮助中首先给出了命令的使用范例: ``` Usage: layaair2-cmd [command...
来源: Laya2.0_文档 发布时间: 20210715
... 方框指示的sprite3d的rotation,会导致子物体TargetGuard的transform.position不正确,好像子节点属于的坐标系变动了? 比如说,绳子不旋转的时候,我在代码中动下面圆盘的transform.positionthis.block = s.getChildByName("target_root").getChildByName("...
来源: Laya_社区 发布时间: 20171228
...); }else { for (var i=0;i < this._stateNum;i++){ this._sources.push(Texture.createFromTexture(img,0,height *i,width,height)); } } ...
来源: Laya_社区 发布时间: 20191122
...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