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

大约有 49 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0058 秒)

41. 请问特效播放的速率可以自定义吗? [ 54%]

...adEffectComplete, [effectPath])) private _onLoadEffectComplete(effectPath: string): void { let spriteEffect: Sprite3D = Laya.loader.getRes(effectPath) this._curRole.addChild(spriteEffect) let effectChilds: any = spriteEffect._childs[0]._childs for (let v of effectChilds) { //v.particleSystem.emissio...

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

42. laya.ui.Clip [ 53%]

...itmap : AutoBitmap[read-only] AutoBitmap 位图实例。 Clip blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UIComponent cacheAs : String 指定显示对...

来源: Laya2.0_api 发布时间: 20190513

43. 【分享】通过命令行调用compile.js编译,不使用laya-cmd [ 53%]

...k1.stdout.on("data", (data) =^> {>>compile_temp.js echo let str = String(data)>>compile_temp.js echo console.log(str)>>compile_temp.js echo if(str.match(/^\s*Error\:/)){app.exit(1);return;}>>compile_temp.js echo let isTasksComplete = str.match(/^laya\.ide\.complete$/m)>...

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

44. 【分享】微信小游戏解析xml适配 [ 48%]

...引擎自带解析方法你们都不知道? laya.utils.Utils.parseXMLFromString(xmlStr) 搞笑的是官方人员提出的这个问题 2018-11-27 0 0 分享 微博 QZONE 微信 老衲当时慌了 赞同来自: http://blog.asroads.com/post/c20f4493.html http://blog.asroads.com/post/28b1df01.html...

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

45. UI-RefreshList [ 45%]

...录 this.redHotStatus.splice(showRedHot, 1); // console.log("11111", JSON.stringify(this.redHotStatus)); } this.refreshList.refresh(); } onClickDel(index){ console.log("((((((((((((del------------"); //按索引删除 this.refreshList.array.splice(index, 1); //清除已纪录的打开状态 // this....

来源: Laya2.0_示例 发布时间: 20250222

46. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 34%]

...释掉,注释后的代码如下: error(err, pos) { if (typeof err === 'string') err = { message: err }; if (pos) augmentCodeLocation(err, pos, curSource, id); err.id = id; err.hook = 'transform'; // return pluginContext.error(err); },该方法虽然可以解决 tslib 找不到的问题,并且...

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

47. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 32%]

...组的图层,在图层的自定义属性栏,添加一个名为layer的string类型属性。操作如图4-1所示。 (图4-1) 点击OK,添加完成后,将所有添加了自定义属性layer的图层。设置分组名称。 例如,我们将块层2与块层3的分组名称设置为 layaAi...

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

48. 高级应用-寻路导航 [ 31%]

...ath(scene:Scene):void { for (var i:int = 0; i < pointCount; i++) { var str:String = "path" + i; path.push((scene.getChildByName('Scenes').getChildByName('Area').getChildByName(str) as MeshSprite3D).transform.localPosition); } } } }

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

49. lib/arm/liblayaair.so 总是崩溃 [ 23%]

...av/h suim:1 s.237} 08-14 10:57:51.382 3194-3563/? E/Parcel: Reading a NULL string not supported here.     Reading a NULL string not supported here. 08-14 10:57:51.390 3526-5095/? W/WindowState: Failed to report 'resized' to the client of Window{58e6240 u0 SurfaceView}, removing this window. 08-14 ...

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