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

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

121. UI-Clip [ 68%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load([buttonSkin, clipSkin, bgSkin], Handler.create(this, this.onSkinLoaded)); } onSkinLoaded() { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } showBg() { const Image =...

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

122. native2.0压缩纹理如何使用 [ 67%]

... 2018-12-20 0 1 分享 微博 QZONE 微信 xiaoman122 赞同来自: Laya.loader.load("res/1.pkm", Handler.create(null, function():void {     var spr:Sprite = new Sprite();     spr.loadImage("res/1.pkm");     spr.pos(100, 100);     Laya.stage.addChild(spr); }), null, Loader.IMAGE); 附件就...

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

123. 新人求教!!! [ 67%]

...成功后,通过回调方法绘制图片并添加到舞台      Laya.loader.load([this.monkey1,this.monkey2],Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{    //创建一个实例    this.img = new Laya.Sprite();    //添加到舞台    Laya.stage.addChild(th...

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

124. API使用问题 [ 67%]

...题 在代码中使用API是否需要使用全称? 比如教程里laya.Loader.load();方法是加载资源。 但是API手册里面 是 laya.net.Loader.load();为什么可以去掉net呢? 小白求教。 2017-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

125. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 67%]

...Enter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this...

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

126. Animation 下的Event.COMPLETE 回调 [ 67%]

...问题 骨骼动画播放完后的回调时间 ios原生回调问题 Laya.loader.create 进度回调函数执行两次 Laya.Handler.create 加载图片回调参数问题 Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个...

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

127. laya.net.Loader [ 67%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderProperties | Methods | Events | Constants Packagelaya.netClasspublic class LoaderInheritanceLoader EventDispatcher Object Loader 类可用来加载文本、JSON、XML、二进制、图像等资源。 Public Properti...

来源: Laya2.0_api 发布时间: 20190513

128. 求教 JS项目的Promise如何使用 [ 67%]

...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.monkey2,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var img = new Laya.Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(this.monkey2),100,50); /...

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

129. 如何使用graphics.loadImage加载图片资源的时候,如何判断加载失败? [ 67%]

...函数是加载完成后才会执行的。楼主可以尝试一下,利用Loader来加载资源 2017-09-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 mrchenx 相关问题 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面...

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

130. LayaDcc使用问题 [ 67%]

...就跟你在浏览器里用一个新图片一样。你在浏览器如果是loader一张新的图片,那么图片加载完,你是可以知道的,loader的完成回调就是图片加载完毕,至于加载进度h5游戏都是按文件个数来返回的,没有返回具体的文件大小加载...

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