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

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

1. 最新的ResourceVersion发布以后加载的url不正确 [ 100%]

最新的ResourceVersion发布以后加载的url不正确 一个工程在IDE下直接播放是可以运行的。  我使用最新的ResourceVersion,在资源后增加了Hash后缀,比如某个文件发布后: release\web\res\atlas\ui\sharedcp094faf36.png 加上了094faf36的后缀   然后...

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

2. 资源版本问题 [ 93%]

...问题吗 //设置版本控制类型为使用文件名映射的方式 Laya.ResourceVersion.type = Laya.ResourceVersion.FILENAME_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, beginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/...

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

3. 使用IDE发布小游戏时,启用了版本管理会导致使用 Laya.MiniAdpter.nativefiles 定义的本地资源文件无法加载 [ 83%]

...改的地方有如下几处:   1、在第8行下面添加对 laya.net.ResourceVersion 的引用: var ResourceVersion = laya.net.ResourceVersion;  2、第330-336行,将 MiniFileMgr.isLocalNativeFile=function(url){ for(var i=0,sz=MiniAdpter.nativefiles.length;i<sz;i++){ if(url.indexOf(Mini...

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

4. 关于资源加载的问题 [ 78%]

...写的 //程序入口 Laya.init(600, 400); //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)...

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

5. 版本管理什么用 [ 78%]

...什么样的    var uiResArray = [                 { url: Laya.ResourceVersion.manifest["res/atlas/loading.json"], type: Laya.Loader.ATLAS },                 { url: Laya.ResourceVersion.manifest[utils.resourcesCenter.ResourcesPathStr.PROTO_FILE_PATH], type: Laya.Loader.TEXT },   ...

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

6. 关于使用资源版本控制加载出错问题 [ 77%]

...次加载每次都会 var LoadingView_configUrl ="version.json"; laya.net.ResourceVersion.enable(LoadingView_configUrl,Laya.Handler.create(this,this.onProLoadedBef),2);     _proto.onProLoadedBef =function() { var ProResArray = [ {url : "res/atlas/com/loading.atlas" , type : Laya.Loader.ATLAS}, ...

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

7. 在微信小游戏中使用BitmapFont会导致报错. [ 73%]

...nit(); //程序入口 Laya.init(600, 400); //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION);  function beginLoad(){     let timerFont = new Laya.BitmapFont();     timerFont.loadFont('res/timerfont....

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

8. 急急急,如何设置按钮点击加载ani [ 71%]

...ex Huang package {     import laya.net.Loader;     import laya.net.ResourceVersion;     import laya.utils.Handler;     import laya.webgl.WebGL;     import laya.utils.Mouse;     import laya.ui.Button;     import laya.display.Sprite;     import laya.display.Animation; ...

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

9. 使用laya官方示例代码制作微信小游戏无法显示 [ 70%]

...//程序入口 Laya.init(600, 400, WebGL); //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoad...

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

10. 限制区域拖动效果,为什么会无法限制呢? [ 70%]

...scaleModel = "full";  // DebugTool.init() //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION);  function beginLoad() { Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); }  function o...

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