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

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

1611. 关于Laya.Timer.once附带参数问题 [ 79%]

关于Laya.Timer.once附带参数问题 Laya.timer.nce(5000,this.this.func,args) 中的args我定义了一个局部变量var 但是在等待执行this.func的时候 这个args是一个undefined,请求论坛大神。。。 2018-05-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

1612. destroy 报错 [ 79%]

destroy 报错 for(let i = 1; i<= this.createCountList[floor] ; i++)             {                 let floor1:Laya.Sprite3D = this.scene.getChildByName("floor"+floor+i) as Laya.Sprite3D;                 if(floor1)                 {   ...

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

1613. 怎么停止当前的定时器? [ 79%]

怎么停止当前的定时器? Laya.timer.loop(5000, this, function(){ //我想在这里停止当前这个定时器,我这个方法没有单独定义函数名。 }) 2018-02-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

1614. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 79%]

...lt; sprite.numChildren; i++) { let child = sprite.getChildAt(i) as Sprite; this.findCompents(lists, child, componentType); } } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { let sprite = this.owner as Laya.Sprite; //sprite.cach...

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

1615. 横向循环滚动的list [ 79%]

...看到代码 2019-01-09 0 0 分享 微博 QZONE 微信 - 赞同来自:  this._list.on(fairygui.Events.SCROLL, this, this.doSpecialEffect); 监听到list发生滚动,进行判断位置和修改item的大小。 2019-06-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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

1616. 回调函数找不到舞台上的对象 [ 79%]

...域是可以动态改变的,你的解决方法有两个,第一个就是this.func.bind(this),第二个就是用new Handler(this,func) 2017-02-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 相关问题 两个对象new了一个相同的对...

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

1617. 游戏系怎么把一些共用的功能独立出来 [ 79%]

...ATLAS },         ];         Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false)); 3、注入JSvar js:any = Laya.loader.getRes("res/atlas/choujiang.js"); Browser.window.eval(js); 4、运行JS var ChouJiang = Browser.window.eval("模...

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

1618. 请问用laya的tab模板创建的tab,为啥没有点击事件啊?而且tab标签点击后没有一直处于按下状态 [ 79%]

...0); Laya.loader.load("res/atlas/template/Tab栏.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyBootPage2UI);     UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {     MyBoot.s...

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

1619. tween 的 update 怎么是回调一次!!! [ 79%]

...Gold, {value:__data.gold}, 1000, Laya.Ease.linearNone, Laya.Handler.create(this, function(){                 trace('obGold.value', obGold.value)             }), 0)             tweenGold.update = updateGoldHandler 写法没问题吧!!! 2019-05-20 添加评论 免费帖 --> ...

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

1620. tween如何更改3d物体位置 [ 79%]

... x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animationDelay);   无法直接设置原因...

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