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

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

61. 预加载进入游戏界面 [ 80%]

...的资源地址。</p>          * <p>因为返回值为 LoaderManager 对象本身,所以可以使用如下语法:Laya.loader.load(...).load(...);</p>          * @param    url            要加载的单个资源地址或资源信息数组。比如:简...

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

62. protobuffer加载失败 [ 80%]

...资源地址使用中括号 )加载 .proto 文件失败:     Laya.loader.load(["res/protobuf/user.proto"], Handler.create(this, onAssetsLoaded)); 错误提示如下: [warn]Retry to load: E:/LayaBox/ProtobufLoadTest/bin/res/protobuf/user.proto [error]Failed to load: E:/LayaBox/ProtobufLoadTe...

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

63. 资源加载过程中断网 [ 79%]

...: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: Laya.loader.load方法加载文件时,如果网络中断,在尝试加载失败后会触发Laya.loader.on("error",this,onLoader); function onLoaded(){   }   不知道你是怎么写的,我们自己做项目都是这样做的...

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

64. [求助]无法使用loader预先加载 [ 79%]

[求助]无法使用loader预先加载 Laya.loader.retryNum = 0; var urls:Array = [ "res/mainpage/title.png", "res/mainpage/q.png", "res/mainpage/BtnNo.png", "res/mainpage/BtnYes.png" ]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader...

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

65. Resources already exist,is repeated loading 加载特效报重复加载 [ 79%]

...PCFType = 3;      //  批量预加载资源         // Laya.loader.create([         //  "res/threeDimen/staticModel/grid/plane.lh",         //  "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",         // //   "res/threeDimen/particle/RadiusMode.lh",  ...

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

66. 报无法找到资源,未升级ide之前不报错 [ 79%]

...览: 3508 关注: 3 人 逸辰 • 2023-07-19 22:52 onAwake(): void { Laya.loader.load( //先加载本场景要用的 ["resources/UI/image.png", "resources/UI/progress.png", "resources/UI/progress$bar.png","resources/UI/images/dsgame/banner2.jpg"] ).then(() =&...

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

67. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 79%]

...s/layabox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/L...

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

68. 创建图集的问题 [ 79%]

...中: //加载图集 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

69. Laya.loader加载BUG [ 79%]

Laya.loader加载BUG 加载图片的时候,源码里这一步会的url为“”的时候,会执行this.onLoaded(null)这一步_ _proto.load=function(url,type,cache,group,ignoreCache,useWorkerLoader){         (cache===void 0)&& (cache=true);         (ignoreCache===void 0)...

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

70. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 79%]

ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null   附Demo。   想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityP...

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