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

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

141. 导出类型为文件模式时,只能是通过Laya.Scene.load的加载返回传递的参数得到视图对象么? [ 63%]

... Devin 赞同来自: 怎么实例化? Laya.loader.load("xxx.json", Laya.Handler.create(this, this.onCompleteCall), .....);   let xxx:View = ? 这里怎么实例化这个 xxx.json为视图对象? 2018-10-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...

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

142. 使用Laya.loader.load加载服务上的图片资源,为什么会停顿几秒中才显示 [ 63%]

...几秒中才显示 Laya.loader.load("http://www.xxxxxxx.com/gold.png",Laya.Handler.create(this,this.aa)); private aa(){ let img = new Laya.Image("http://www.xxxxxxx.com/gold.png"); Laya.stage.addChild(img); } 请问下,这样写有声明不对么 ? 2018-04-18 添加评论 免费帖 --> 分...

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

143. 加载不同域名下的单个图片 会重复加载两次,导致无法显示 [ 62%]

....base_image_url+"image/loading.jpg", ]; Laya.loader.load(_silentLoadArray, Handler.create(this, gameStart));   var gameStart = function(){     var loading = new LoadingPage();(loading页面)     //加载完成 进入主界面     loading.onComplete = loadHome;     //开始加载     l...

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

144. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...x.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); 编译运行上面的代码,然后点击舞台可以看到,二维码已经显示到了舞台上,可以用手机扫下,发现手机已经...

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

145. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 62%]

...te(); Laya.stage.addChild(logo); logo.loadImage("res/atlas/test.png", Laya.Handler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.width/2-logo.width/2,Laya.stage.height/2-logo.height/2); })...

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

146. list和cell如何联系 [ 62%]

...list呢?我看list 和cell 之间可以发生联系的地方只有renderHandler和设置itemRender?如何处理这个需求呢? 2017-01-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来...

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

147. 这个方法使用的时候动画都不显示了 [ 62%]

...        */         public function loadAtlas(url:String, loaded:Handler = null, cacheName:String = ""):Animation { 2018-05-22 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Yangcy 相关问题 两个对象new了一个相同的...

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

148. load方法加载cdn上面的图片资源的时候直接报了跨域不同源的问题,怎么破? [ 61%]

...e.log('Gzdaze='); console.log(Gzdaze); Laya.loader.load(Gzdaze.dialogList, Handler.create(this, this.startLoaded)); 代码是这样的 报错 Access to Image at 'http://caifu-1251177394.file.myqcloud.com/beta/book/bookLaya/img/progressBar$bar.png' from origin 'http://bookportal.com' has been blocked...

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

149. 调用动画结束on方法,报错this.zombieAnimator.on is not a function [ 59%]

...例3D Laya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void { scene.addChild(zombie); this.zombieAnimator = (zombie.getChildAt(0) as Laya.Sprite3D).getComponent(Laya.Animator) as Laya.Animator;//获取Animator动画组件 this.z...

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

150. 请大家帮助优化一下这个抛物线的代码 [ 58%]

...a.init(1100, 619, Laya.WebGL); Laya.loader.load("res/atlas/war.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } private onLoaded():void{ this.ball = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stag...

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