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

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

551. tiledMap显示层级问题 [ 56%]

...,走到临界点的时候读取需要加载的区块名称,通过Laya.loader.load(this.m_mapName, Laya.Handler.create(this, this.onLoadCompleteHandler), null, Laya.Loader.ATLAS);加载资源,成功后调用this.m_tileMap.createMap(OOXX);来显示。不知道这样调用是否正确? 因为...

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

552. IDE发布之后,在res下并没有任何资源,这是什么情况啊? [ 56%]

...也就是预加载资源的地方),资源路径写错了。改成 Laya.loader.load("res/atlas/Resources.json",laya.utils.Handler.create(this,this.onReader),null,laya.net.Loader.ATLAS);就好了 Buzhihew • 2017-01-11 15:50 @Monica:.......我.....总之谢谢啊啊啊 Monica • 2017-0...

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

553. 渲染完成的回调 [ 56%]

...画完成之后切换为待机动画,会导致播放的动画异常 Laya.loader.create 进度回调函数执行两次 问题状态 最新活动: 2017-11-27 14:10 浏览: 1190 关注: 2 人 asdf131 • 2017-11-27 13:50 再详细一点吗?changeHandler不是滚动时调用的吗? asdf131 • 201...

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

554. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 56%]

...olor = "#101825"; this.init() } init() { // 预加载图集 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUS...

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

555. 小白求助,关于时间轴动画如何设置播放一次后消失? [ 56%]

...白求助,关于时间轴动画如何设置播放一次后消失? Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { var tl = new Laya.Animation(); tl.loadAnimation("democesi.ani"); Laya.stage.addChild(tl); tl.play(); tl.pos(302,650); } 2018-01-1...

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

556. Laya IDE横竖屏切换时,不断刷新 [ 56%]

...a.stage.scaleMode = 'exactfit'; Laya.stage.screenMode = 'horizontal'; Laya.loader.load(['res/atlas/view.atlas'], Handler.create(this, initGame)); Laya.timer.frameOnce(1, this, function () { Laya.stage.on(Event.RESIZE, this, function () { window.location.reload(); }) }) 2018-04-16 添加评论 免费...

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

557. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 56%]

...; } private function beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = n...

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

558. 加载配置json文件不成功!json文件放在bin目录下的 [ 56%]

加载配置json文件不成功!json文件放在bin目录下的   Laya.loader.load(["res/atlas/comp.atlas","res/atlas/popup.atlas","res/atlas/cartoon.atlas","res/atlas/miner.atlas","gameConf.json"],Laya.Handler.create(this,onloaded),null,null); 2018-07-23 添加评论 免费帖 --> 分享 微博...

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

559. 启用版本管理后,加载的资源很奇怪的在正确的路径后面又加了一次路径 [ 55%]

...tos/login.proto", "protos/gm.proto", "protos/samplegame.proto", ];   Laya.loader.load(this._proto_files,Laya.Handler.create(this,this.OnProtoLoaded),null, Laya.Loader.TEXT);     打包的时候在release/web下面有了protos/loginxxxxxxxx.proto这样的文件 然后运行的时候,报了这样...

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

560. 模仿教程里的打地鼠写的代码,运行报错 [ 55%]

...; //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这...

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