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

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

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

...x 赞同来自: //关闭特效自己实现 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

372. WaterPrimaryMaterial的使用 [ 71%]

...rial();         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) { // material.alb...

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

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

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

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

374. 关于layaair中类的大小写规则有没有基本的说明文档 [ 71%]

...明文档 比如: Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(null, onLoaded), null, Laya.Loader.ATLAS); Laya.loader.load(resArray, Laya.Handler.create(null,onLoaded)); loader与handler   2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

375. 头条首次加载黑屏,之后正常.通过调试发现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

376. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 71%]

...过回调方法绘制图片并添加到舞台 Laya.loader.load(Res,Handler.create(this,graphicsImg)); } private function graphicsImg():void { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.stage.addChild(img...

来源: Laya2.0_文档 发布时间: 20210714

377. UI-CheckBox [ 71%]

...kbox (5).png", "res/ui/checkbox (6).png"]; Laya.loader.load(skins, Handler.create(this, this.onCheckBoxSkinLoaded)); } onCheckBoxSkinLoaded() { let cb; for (let i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; La...

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

378. UI-Slider [ 71%]

...i/vslider.png", "res/ui/vslider$bar.png"); Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { this.placeHSlider(); this.placeVSlider(); } placeHSlider() { const HSlider = Laya.HSlider, Handler = Laya.Handler; let hs = new HSlider("res/ui/hslider.png"); Laya.stag...

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

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

...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.Loader.IM...

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

380. Laya.loader.load 加载时长10秒,的progress 回调只会调用一次,0.2就再也不会被调用到了。为什么啊 [ 71%]

...nica - 知识达人 赞同来自: 加载进度的回调你是用的Handler.create吗?如果是的话需要设置create里边的最后一个参数为false 2017-09-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 185*****367 相关问...

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