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

大约有 1,158 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)

281. 再问:tween对象的回收利用 [ 72%]

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

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

282. 人物行走图动画 [ 72%]

..., cache:Boolean = true):void 加载资源。 Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS);   这里的load只有三个参数,而事实上用到4个,不清楚。。。   还有ani.index = 1;我改成0,-1,2,可是在经过play后面自动变成...

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

283. laya.net.LoaderManager_API3.0 [ 72%]

...turns void create create(url: string | (string | createItem)[], complete?: Handler | null, progress?: Handler | null, type?: string | null, constructParams?: any[] | null, propertyParams?: any, priority?: number, cache?: boolean): void Defined in laya/net/LoaderManager.ts:97 根据clas类型创建...

来源: Laya3.0_api 发布时间: 20231102

284. Button 添加事件不执行? [ 72%]

... Stage = Laya.stage; let Button = Laya.Button; let Event = Laya.Event; let Handler = Laya.Handler; let rightBtn = new Button(); rightBtn.labelFont = "Microsoft YaHei"; rightBtn.label = 'right'; rightBtn.labelSize = 60; rightBtn.labelColors = '#fff'; rightBtn.labelStrokeColor ='#FF8502'; rightBtn.lab...

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

285. dialog 自定义关闭效果,效果执行完,弹窗无法关闭 [ 72%]

...ls_laybox 赞同来自: //关闭特效自己实现 this.closeEffect = Laya.Handler.create(this,this.onCloseEffect,null,true);   //具体的实现代码 _proto_.onCloseEffect = function(){ Laya.Tween.to(this,{ x:-100 //动画结束就关闭 },1000,null,Laya.Handler.create(this,this.close)); }   但...

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

286. WaterPrimaryMaterial的使用 [ 72%]

...aterMaterial();         Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // mate...

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

287. 微信飞机大战中“开始页面”逻辑功能关于js继承问题 [ 71%]

...音乐,加载完成与加载进度回调方法 Laya.loader.load(assetArr,Handler.create(this,onComplete),Handler.create(this,onProgress)) } return GameStart(); })();   2017-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

288. 头条首次加载黑屏,之后正常.通过调试发现Laya.AtlasInfoManager.enable等API的异步回调进不去 [ 71%]

...下.         Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded));         Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded)); 2020-04-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

289. 照着官方文档写的 Dialog 报错? [ 71%]

...ad(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = function () { this.initLoadData(); }; LoadResource.prototype.initLoadData = function () { var res_array = [ {url:"res/ui/dialog.png",type:Laya.L...

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

290. 动画-图集动画 [ 71%]

...HOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(aniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.Loader.ATLAS); } createAnimation() { const Animation = Laya.Animation; let ani = new Animation(); Laya.stage.addChild(ani); ani.loadAtlas(aniConfPath); // 加载图集动...

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