大约有 831 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0070 秒)
Laya_社区(671) Laya2.0_文档(61) Laya_示例(34) Laya3.0_文档(31) Laya2.0_示例(30) Laya3.0_api(3) Laya2.0_api(1)
...t }; // 赋值属性 for (let i in param) data[i] = param[i]; self.visible = true; // 检测 var texture = self.$texture; if (texture) { ...
来源: Laya_社区 发布时间: 20181114
...ivate cameraEventFlag: Laya.CameraEventFlags = Laya.CameraEventFlags.BeforeImageEffect; private camera: Laya.Camera; private renders:Laya.BaseRender[] = []; private materials:Laya.Material[] = []; public static instance: CommandBuffer_Outline ; ...
来源: Laya_社区 发布时间: 20210203
...池中创建对象。将addChild改成addItemFromPool。 错误示例2: for(let i=0;i<10;i++) aList.addItemFromPool(); aList.removeChildren(); 这里添加了10个item,但移除时并没有保存他们的引用,也没有放回到池里,这样就造成了内存泄漏。将aList.removeChild...
来源: Laya3.0_文档 发布时间: 20251128
...1-5431/com.ReleaseTest.Four E/ActivityThread: Failed to find provider info for com.google.settings 06-20 19:10:18.492 5371-5426/com.ReleaseTest.Four W/chromium: [WARNING:data_reduction_proxy_config.cc(318)] SPDY proxy OFF at startup 06-20 19:10:18.494 5371-5371/com.ReleaseTest.Four E/MPlugin: Unsupp...
来源: Laya_社区 发布时间: 20170620
...,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_示例 发布时间: 20260303
...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