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

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

561. 克隆sprite [ 51%]

...lement: any;             let maxY: number = 0 | 0;             for (let i: number = 0; i < arr.length; i++) {                 element = arr[i];                 if (element) {                     tempImg = new Laya.Image(GameResPath.mapPath + this.currMapID + ...

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

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

...hild(spriteEffect) let effectChilds: any = spriteEffect._childs[0]._childs for (let v of effectChilds) { //v.particleSystem.emission.emissionRate = 10 v.particleSystem.play() } }

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

563. 销毁有声音的spine动画,skeleton中的_onAniSoundStoped有时会报undefined错误 [ 51%]

.../**     *@private     *清掉播放完成的音频     *@param force 是否强制删掉所有的声音channel     */     __proto._onAniSoundStoped=function(force){         var _channel;         for (var len=this._soundChannelArr.length,i=0;i < len;i++){    ...

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

564. parameter 2 is not of type 'WebGLTexture'. [ 51%]

...ist on type 'typeof Laya' Spine 格式转换, Error: Invalid timeline type for a slot:twoColor XmlDom类没有了?解析xml时,报错Property 'attributes' does not exist on type 'Node & ChildNode'. 读URL parameter parameter 2 is not of type 'WebGLTexture' textinput(type=password)手机打...

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

565. 关于闭包的问题 [ 51%]

...包的问题 废话不说,上代码 var letterList = ["A","B","C","D"]; for (var z = 0; z < letterList.length; z++){ var letter = new Sprite(); letter.loadImage("../imgs/linkup/" + letterList[z] + ".png", (bg.width / letterList.length) * z, 0, bg.width / letterList.length, bg.height / 2); Laya....

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

566. 构建app上架苹果被拒,说含有支付宝 [ 51%]

...果那边反馈说依然包含(支付宝) 字段。 Hello, Thank you for providing this information. Regarding 2.3.1, we continue to find that your app includes AliPay (E1e), which provides 2020-06-08 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 目前官方的游戏我们提审是可以...

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

567. getItemByClass的问题 [ 51%]

...享 微博 QZONE 微信 cuixueying 赞同来自: 你的问题应该是,for循环的时候,不断的Pool.getItemByClass("monster", SimpleRole),当第一个对象的timer事件还没有执行完,第二个对象的timer就开始了,如此反复创建覆盖导致的,你可以参考下官方...

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

568. [LayaAir3]我修改了这个启动场景,从Loading——>register之后,就导致报这个错误,即使后面修改回去,也不行。怎么解决? [ 51%]

...  INDEX:bundle.js No matching export in "src/scence/uiDemo/registerRT.ts" for import "main"  [Ln 96, Col 49] at /D:/Laya3IDE/LayaAirIDE/resources/app.asar/game.js:2编译失败 at /D:/Laya3IDE/LayaAirIDE/resources/app.asar/game.js:2 附件 : --> 2025-10-28 添加评论 免费帖 --> 分享 微博 ...

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

569. 简单的震屏效果 [ 51%]

...,效果执行完,弹窗无法关闭 基本效果已经实现,想用for批量绑定事件 2.0 添加场景雾之后 粒子特效离原点越远 效果越淡 【简单跑酷--JS版】---Lv.6 终篇 【简单跑酷--JS版】---Lv.5 玩家踩地板 如何实现透明像素被掏空的效果 擦除...

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

570. 发布微信后无法触发mouse_up事件 [ 51%]

...ts.Event):void { var touches: Array<any> = e.touches; if (touches) { for(let i=0;i<touches.length;i++){ let t =touches[i]; let nameIndex =e.touchId + "_" + i; console.log(nameIndex+":"+e.type); } } } 之能收到down和move! 2018-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微...

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