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

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

2441. 再问:tween对象的回收利用 [ 67%]

...属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 * @param duration 花费的时间,单位毫秒。 * @param ease 缓动类型,默认为匀速运动。 * @param complete 结束回调函数。 * @param delay 延迟...

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

2442. 旧版发布后js文件,比如旧版发布后的main.min.js [ 67%]

...          ResourceVersion.enable("version.json", Handler.create(this, this.onVersionLoaded), ResourceVersion.FILENAME_VERSION); ``` 2019-07-04 0 0 分享 微博 QZONE 微信 末节极地 赞同来自: 但是只有新版发布才有version.json,旧版发布是没有的 2019-07-08 0 1 分...

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

2443. typescipt在一定范围内加载图片按照等比排列 [ 67%]

...omp/image.png'];     myTestUI.imgList.renderHandler = new Laya.Handler(this, onImgListRender);   function onImgListRender(box: Laya.Box) {     let model = box.dataSource;     let panel = box.getChildByName('panel') as Laya.Panel;     let img = panel.getChildByName('img') as Laya.Ima...

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

2444. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 67%]

...unction startFun() { mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.loadAni("res/spine/spineRes2/goblins.sk"); } function parseComplete() { mArmature = mFactory.buildArmature(1); mArmature.x = 100; mArmature.y = 200; var rect=new Laya.Rectangle(-200,-200,300,300...

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

2445. 两个panel嵌套,都是竖直方向滑动,滑动冲突如何解决? [ 67%]

...通过监听子Panel滑动,通过设置以下属性,控制外部Panel this.my_panel.vScrollBar.touchScrollEnable=false; this.my_panel.vScrollBar.mouseWheelEnable=false;   请问Laya的Panel控件有其他属性,可以简单处理这种问题吗?   2018-01-03 添加评论 免费帖 --> 分...

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

2446. Unity导出的特效,怎么缓存让第一次加载的时候不卡呢 [ 67%]

...));                     effect.once(Laya.Event.HIERARCHY_LOADED, this, function(){                         var particle = effect.getChildAt(0).getChildAt(0).particleSystem;                         particle.on(Laya.Event.COMPLETE, this, function(){             ...

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

2447. 设置旋转特效后,旋转对象的位置跑偏了 [ 67%]

...uan.height/2);                       Laya.timer.frameLoop(1,this,onLoopRotation,[this.xuanzhuan]);         }         private function onLoopRotation(sp:Sprite):void         {             sp.rotation++;          } 2017-12-25 添加评论 免费帖 --> ...

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

2448. 安卓下 socket 连接不稳定【加急】 [ 67%]

...子也一样 不超过1分钟 就会触发 JSWebSocketDelegate::onClose()this=eed04f40 ws=eecc5c00 JSWebSocket::onSocketCloseCallJSFunction this=eecc5c00 没有任何报错信息 IOS正常 2017-12-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

2449. 背景音乐音效问题 [ 67%]

...ya.Loader.SOUND}, } Laya.loader.load(fightLandlordRes, Laya.Handler.create(this, this.resLoaded)); Laya.SoundManager.playMusic("Lobby/Sound/BG309.mp3"); 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Zz...

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

2450. 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 [ 67%]

...tic aa:Child; private static bb:Child; constructor() { Laya.init(600,400); this.init(); } private init(){ LayaSample.aa = new Child(); LayaSample.aa.num("1"); LayaSample.bb = new Child(); LayaSample.bb.num("2"); setTimeout(function () { let s = LayaSample.aa.shuchu();//输出这个组件num,结果...

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