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

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

51. 技术文档中的示例js运行报错 [ 82%]

...错 Uncaught TypeError: this.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() function onLoaded() { var cMa...

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

52. 微信小游戏加载 BitmapFont 问题 [ 82%]

..."./js/dom_parser"); require("code.js");在加载这个文件的时候 Laya.loader.load([{ url: "button_font.fnt" }], Handler.create(null, onLoaded)); 图片里的 type="font",最终执行的 tempData=data.data; tempData 直接就是button_font.fnt里面内容的字符串类型MiniLoader.onReadNati...

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

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

...; //设置背景颜色 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

54. 启用版本管理后有严重bug [ 79%]

...与内容相关的链接 提交 8 个回复 OneWay 赞同来自: 替换MiniLoader试试 MiniLoader.zip 2018-04-27 0 3 分享 微博 QZONE 微信 linchenrr 赞同来自: 补充一下  微信小游戏平台 2018-04-26 0 1 分享 微博 QZONE 微信 linchenrr 赞同来自: 找到原因了  项目发...

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

55. 自定义loadingView [ 78%]

...进行进度值传参 dd.loading(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } 这里的dd=__JS__("window.loadingView"); 换成 ts 怎么写 Apple • 2018-04-16 16:22 直接 Laya.Brows...

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

56. 创建图集的问题 [ 78%]

...中: //加载图集 asset.push( { url: NVHAIDAOMAO_JSON_URL, type: Laya.Loader.ATLAS }, { url: WAR_JSON_URL, type: Laya.Loader.ATLAS } ); Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); // 使用图集 var arr = []; for(v...

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

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

...; } 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

58. laya微信小游戏加载外部素材失败 急急急 [ 77%]

...有资源 var resource = [ { url: "res/atlas/game/game.atlas", type: Laya.Loader.ATLAS }, { url: "res/models/scene/scene.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "res/models/xiaoji/xiaoji.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "res/models/item/item.lh", clas: Laya.Sprite3D, priority:...

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

59. load 跨域请求 [ 76%]

load 跨域请求 Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

60. Laya.Animation.loadAtlas 这个方法是有问题吗 [ 76%]

...还有 我只加载动画使用的资源好想不可以?还有使用Laya.Loader的方式能不能加载ani文件? laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内存不断增加! 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方...

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