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

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

51. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 60%]

...ar step = 0; Laya.init(1285, 727, Laya.WebGL); var stage = Laya.stage; var loader = Laya.loader; stage.bgColor = "#00ffff"; stage.alignH = "center"; stage.alignW = "middle"; stage.scaleMode = "showall"; loader.load("../../res/guide/crazy_snowball.png", Handler.create(this, init)); function init(e) {...

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

52. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 60%]

...72:13)     at http://127.0.0.1:53462/game/code.js:97630:17     at Laya.loader.load.Handler.create (http://127.0.0.1:53462/game/code.js:102231:13)     at Handler.__proto.runWith (http://127.0.0.1:53462/game/code.js:711:59)   查看了应该是微信自带的浏览器内核不支持Function.app...

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

53. 微信小游戏里面开放数据域的资源加载问题 [ 59%]

...nction.MiniFileMgr.readFile (http://127.0.0.1:63435/game/op ... 418:14) at Loader.__proto.load (http://127.0.0.1:63435/game/op ... 115:18) at LoaderManager.__proto._doLoad (http://127.0.0.1:63435/game/op ... 296:10) at LoaderManager.__proto._next (http://127.0.0.1:63435/game/op ... 269:26) at Loader...

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

54. 二次开发 异步回调没反应 [ 59%]

...何反应这么慢,附上demo求解答 Laya.Handler.create 回调 Laya.loader.create 进度回调函数执行两次 问题状态 最新活动: 2019-07-02 11:16 浏览: 1219 关注: 1 人 zpo • 2019-09-05 16:23 请问是怎么解决的呢?我们写了个简单的demo测异步回调是测通的...

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

55. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 58%]

... public function Action() { init(); } private function init():void { Laya.loader.load("../res/zy/zy.json",Handler.create(this,onLoadedSource),null,Loader.ATLAS); } private function onLoadedSource():void { roleAni = new Animation(); playActions(); }   2、你打包图集的时候,.json文件的pre...

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

56. Bitmap引用计数的问题 [ 58%]

...是实际上输出的是1。不知道是不是我的理解有问题还是LoaderManager.load在加载第二张图片直接完成导致useNum++没有执行的问题 2017-04-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 ...

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

57. 微信小游戏手动缓存管理,atlas依然不能从缓存读取 [ 58%]

...以在Laya.MiniAdpter.getFileList()查找到对应缓存   但使用Laya.loader.load预加载图片与atlas时,图片可以正常从usr/layaairGame/中读取 atlas文件依旧从远程读取   如何使atlas从本地路径读取? (虽然atlas文件尺寸不大,但这样不能离线运行...

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

58. 【简单跑酷--JS版】---Lv.6 终篇 [ 56%]

... = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 = Laya.loader.getRes("res/hp_bar.png"); break; } th...

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

59. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 55%]

..."; Laya.stage.bgColor = "#232628"; //这里是我注释掉的代码 //Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); this.setup(); } private setup(): void { this.createApe(); this.showDragRegion(); } private createApe(): void { this.ape = new Sprite(); //this.ape.loadImage(this.Ap...

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

60. 环形进度条 [ 55%]

...麻烦帮看一下这种遮罩bar的进度条设了遮罩不起作用 Laya.loader.create 进度回调函数执行两次 关于环形进度条,进度不能重置问题 这种进度条怎么实现? 官方提供的进度条示例 只能设置progress.png的九宫, 里面的progress$bar.png 无法...

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