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

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

561. vbox动态添加子项目问题 [ 52%]

vbox动态添加子项目问题 UI里有一个VBOX,然后代码里通过for循环来addChild(ItemRender)的方式 添加子项目,页面中发现所有子项目居然重叠在一起了,使用了vbox.refresh()也没用,如何能让动态添加进入vbox的东西正常排列? 2018-08-29 添...

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

562. List数据源的格式问题导致无法响应List的SelectHandler [ 52%]

...源设置的相关代码var temp:Array = []; var skillInfoVO:SkillInfoVO; for(var i:int = 0;i<20;i++) { skillInfoVO = new SkillInfoVO(); skillInfoVO.Name = "数据源" + i; skillInfoVO.Lv = i; skillInfoVO.Color = 1; temp.push(skillInfoVO); } list.array = temp;2、SkillInfoVO的相关代码public ...

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

563. 【Native BUG】Native下对根结点设置filter,无法更新到每个子节点,web是ok的 [ 51%]

... public static setGray(node: Laya.Node, set: boolean) {             for (var i = 0; i < node.numChildren; i++) {                 let sprite = node.getChildAt(i) as Laya.Sprite;                 if (sprite) {                     //if (sprite instanceof Laya.Text) { ...

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

564. 克隆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

565. 请问特效播放的速率可以自定义吗? [ 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

566. 销毁有声音的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

567. 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

568. 关于闭包的问题 [ 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

569. 构建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

570. getItemByClass的问题 [ 51%]

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

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