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

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

211. 预加载音频文件遇到的问题 [ 56%]

....mp3", 0, Laya.Handler.create(this, onComplete)); } function onComplete(){ console.log("播放完成"); } 运行能正常运行但是控制台提示 Resources already exist,is repeated loading: D:/html5yx/project_zz/myxfj/bin/res/sound/bloodstream_bg.mp3 请问这是怎么回事。   附件 : --> 2...

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

212. iOS的conchMarket 如何新建新的对应关系 [ 56%]

...pe:"test"}; window.conchMarket.share(JSON.stringify(sData),function(data){ console.log(data); // TODO 数据处理. });   oc里怎么调用呢?     2018-01-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qi...

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

213. 用tiledmap导出的json文件为何加载不成功? [ 56%]

...), new Handler(this, completeHandler)); function completeHandler(params) { console.log("brj laya h5 加载完成.."); }   2017-09-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 建议...

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

214. Uncaught Can not find class laya.ani.bone.Skeleton [ 56%]

Uncaught Can not find class laya.ani.bone.Skeleton 新建项目 console.log(Laya.Skeleton)为undefine  场景里放入.sk动画 运行报错Can not find class laya.ani.bone.Skeleton 附件 : --> 2020-05-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

215. 获取动态更新的文本内容 [ 56%]

...r.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,true,null,true); //console.log(Laya.Loader.loadedMap); } 另外就是加载的时候,不缓存资源,就不能读取文本内容。 1 let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader.TEXT...

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

216. laya获取图片像素后重新设置回去带有透明像素的地方显示有问题 [ 55%]

...       let x = tex.bitmap.getPixels();              console.log("------------------------",x);                          tex.bitmap.setPixels(x);              let sp = new Laya.Sprite();             sp.texture = tex;    ...

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

217. 连续读取多个本地json文件 [ 55%]

连续读取多个本地json文件 onAwake(): void { console.log("读数据"); Laya.loader.load("Json/shopLevel.json", Laya.Handler.create(this, this.shopJsonLoaded), null, Laya.Loader.JSON); Laya.loader.load("Json/menu.json", Laya.Handler.create(this, this.menuJsonLoaded), null, Laya.Loader.JSON);...

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

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

...但貌似没有效果的: this.avatar.on(Event.ERROR, this, function() { console.log('loaded fail'); }); 2017-09-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ybs1905com 赞同来自: 看下API,graphics支...

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

219. 怎样在Laya引擎初始化失败时点击OK后退出应用 [ 55%]

...应,请问如何解决? window.onLayaInitError=function(e)  {      console.log("onLayaInitError error=" + e);      alertExit("加载游戏失败,可能由于您的网络不稳定,请退出重进");  }   附加: 附件中我打印了一些日志,发现相关类和函数都还没...

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

220. timer.once(100,this,this.play,[参数名])在play方法中怎么获取参数名得值! [ 55%]

... QZONE 微信 Supermang42 赞同来自: play( iNum: number ): void {     console.log( iNum ); }   如上述的範例,函式( )內接收參數。 2018-03-31 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 185*****207 相关问题 两...

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