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

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

481. 请问laya有没有类似翻页容器(pageView)的组件? [ 70%]

...ctor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMouse) } onOpened(param: any) { sup...

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

482. t._addReference is not a function [ 70%]

...同的问题,解决了,供参考: Laya.loader.load(chapterBG, Laya.Handler.create(this, this.onBGLoaded, [chapterBG])/* , Laya.Handler.create(this, this.onBGLoadProgress) */); 第三个参数打开在某些条件下会出t._addReference is not a function 可能是加载进度回调的时候跑...

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

483. 新版unity插件导出场景加载报错 [ 70%]

...1222) at Laya3D._onHierarchyInnerFirstLevResouLoaded (laya.d3.js:14496) at Handler.__proto.run (laya.core.js:1385) at onComplete (laya.core.js:14546) at Handler.__proto.runWith (laya.core.js:1400) 1.0的插件能导出场景并正常预览和使用 2018-12-18 添加评论 免费帖 --> 分享 微博...

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

484. load完成后能否获取到具体是哪个对象资源完成 [ 70%]

...s"); private LoadAsset(path: string): void { Laya.loader.create(path, Laya.Handler.create(this, this.OnAssetComplete)); } private OnAssetComplete(): void { console.log("on asset complete:"); } 我想在OnAssetComplete内知道是哪个资源被回调了,请问要怎样处理,是否有现成的...

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

485. ts 空项目 版本1.7.20 下的load 调用2次 第二次 失效 [ 70%]

...h({url:"res/atlas/build.atlas",type:Loader.ATLAS}) Laya.loader.load(assets,Handler.create(this,null),Handler.create(this,this.proces,null,false)); 第一次成功 当我第二次调用失败 资源not found 资源是不同的 2018-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

486. 关于ASTC使用问题和建议 [ 70%]

..."; 或者是 let tex = new Laya.Texture(); tex.load("ui/guide01.png", Laya.Handler.create(this, ()=>{   this.img.texture = tex; }));   但是如果使用ASTC纹理时就会报错,需要使用异步的方式来处理         Laya.loader.load("ui/guide01.ktx", Laya.Handler.create(this, (res...

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

487. 微信小游戏利用开放域好友关系链做排行榜 [ 70%]

...yOpenDataContext 5.主域这边代码: import Label = Laya.Label; import Handler = Laya.Handler; import Loader = Laya.Loader;  class GameBootstrap{      public constructor(){         this.init();     }      private init():void{         //初始化微信小游戏   ...

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

488. 有没有Loader预加载 相关的注意事项或者文档 在手机上问题有点多 [ 70%]

...APK安装到手机上 有时会发生异常 Laya.loader.load(skins, Laya.Handler.create(this, fGameLoad), Laya.Handler.create(this, onLoading, null, false), null, 1, true, sGameMark, false); Laya.loader.on(Event.ERROR, this, onError); 预加载资源添加了完成 进度 和失败监听  在手机...

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

489. 关于tiledmap.moveViewPort动画的问题 [ 70%]

...ya_Aaron 赞同来自: Tween.to(this,{x:40,y:50,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onUpdate)}) 大概长这个样子 2018-07-06 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 如果会用tween 就好办,  tween 里面有个 update 回调,...

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

490. 分享:LayaAir下如何加载和使用.JSON文件! [ 70%]

...使用.JSON文件! package { import laya.net.Loader; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var json:JSON=Laya.loa...

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