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

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

921. 请问如何给ui下所有的button加一个点击监听事件? [ 55%]

...n来做。 Laya.stage.on(Laya.Event.CLICK, this, function(res:Laya.Event){ if (res.target instanceof Laya.Button){ // click button } }) 2018-12-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 183*****288 相关问题 两个对象new了...

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

922. TS2D基础篇-图集动画运用 问题 [ 55%]

...--------- var aniData=_this_._parseGraphicAnimation(Loader.getRes(url)); if (!aniData)return; var aniList=aniData.animationList; var i=0,len=aniList.length; --------源码--------- 报错: aniList.length为null "Cannot read property 'length' of null" 2018-07-19 添加评论 免费帖 --> 分享 ...

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

923. 进度条滚动无效【已解决】 [ 55%]

...s,onLoop); private function onLoop():void { progress++; //最高100%进度 if(progress>=100) { progress=100; this.tips.text="游戏加载完毕,即将进入游戏..." this.panel.visible=false; this.gobtn.visible=true; }else { this.pro.value=progress/100; this.tips.text="游戏正在加载中,...

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

924. Laya2.0 动画Animator如何监听播放完成 [ 55%]

...imator:Laya.Animator;  onStateEnter(): void {  }  onStateExit(): void { if(this.animator) { this.animator.crossFade(AnimationDefine.IDLE,0.5,0,0); } }  onStateUpdate(): void {   } } 2018-11-20 0 0 分享 微博 QZONE 微信 haseef520s 赞同来自: 嗯嗯 谢谢了  2.0以后可以获取animat...

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

925. skin 大于512 的释放问题 [ 55%]

....name = type + ""; this.showFight(fight); } showFight(num: number): void { if (this._sprFight) this._sprFight.graphics.clear(); this._sprFight = bigao.utils.TextrueUtils.getNumberByUrl(resourcesCenter.ResourcesPathStr.FIGHT_NUMBER_PATH_PNG, num.toString()); this._sprFight.x = 600; this._sprFight.y =...

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

926. [求助]无法使用loader预先加载 [ 55%]

...re = Laya.loader.getRes("res/mainpage/title.png");             if(titleT==null){                 trace("none");             } }   加载成功后纹理是空的 2017-10-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

927. 2D物理-复合碰撞器 [ 55%]

....frameLoop(1, this, this.addMiniBox); } addMiniBox() { let box = this.box; if (this.count >= this.totalBox) { return; } let sp = new Laya.Sprite(); Laya.Laya.stage.addChild(sp); sp.x = box.x; sp.y = box.y; sp.addComponent(Laya.RigidBody); let collider = sp.addComponent(Laya.BoxCollider); collider.wi...

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

928. 关于嵌入div [ 55%]

...,function(){             Browser.__init__();             if (!Browser._container){                 Browser._container=Browser.createElement("div");                 Browser._container.id="layaContainer";                 Browser.document.body.appen...

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

929. 有人遇到GetType 的问题吗? laya2.0 [ 55%]

...function(a) { let ba=0; while(true){ ba = this.m_moveBuffer.indexOf(a,ba); if(ba<0)break; this.m_moveBuffer[ba] = null } } ; 2020-11-21 0 0 分享 微博 QZONE 微信 Leon 赞同来自: 遇到过,后面直接在'GetType' 那里加了非空判断 2019-04-08 0 1 分享 微博 QZONE 微信 与你...

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

930. 关于webGL下遮罩效率问题 [ 55%]

...1, null, drawMask); var index:int = 0; function drawMask():void { index++; if(index > 72) index = index-72; var angle:int = index*5; spr.mask.graphics.drawPie(0,0,100,0,angle, "#ffffff"); } 2018-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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