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

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

61. 我来改代码! [ 84%]

...,临时你也可以通过修改代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find")...

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

62. load 跨域请求 [ 84%]

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

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

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

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

64. IDE UI编辑器找不到 BitmapFont [ 83%]

...载的方法 Monica • 2017-10-18 16:14 @Zzz18815519:预加载就是Laya.loader.load() Zzz18815519 • 2017-10-18 16:17 用Laya.loader.load怎么获得Laya.BitmapFont对象进行命名和注册 Zzz18815519 • 2017-10-18 16:19 Laya.loader.getRes("xxx.fnt")这种方式吗? Monica • 201...

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

65. TypeScript Json 数据解析 [ 83%]

...容 { "name":"zzy" } 第一种方式 private on2DComplete(): void { Laya.loader.load("zxc.json", Laya.Handler.create(this,this. onLoadConfigComplete),null,Laya.Loader.JSON); } wayPoints:JSON; private onLoadConfigComplete(): void { this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(...

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

66. 载入U3D导出的粒子特效报错 [ 83%]

...ya.core.js:726)     at ResInfo.__proto.event (laya.core.js:494)     at LoaderManager.__proto._endLoad (laya.core.js:13347) __proto._initBufferDatas @ laya.d3.js:26634 (anonymous) @ laya.d3.js:27190 __proto._parseCustomProps @ laya.d3.js:40855 Utils3D._createNodeByJson @ laya.d3.js:17945 Utils3D....

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

67. ani用到的图集资源清理之后再次用load进来,重新创建ani,ani不现实的bug [ 83%]

...有一个a.ani文件,这个a.ani需要用到b.json图集。 先用Laya.loader.load加载b.json图集,然后在加载完成的处理函数里面new一个Animation,将a.ani显示出来   过一会移除a.ani,并且用Laya.loader.clearRes删除b图集   又过一会,重新用Laya.loader.loa...

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

68. UNITY3D导出模型加载错误 [ 83%]

UNITY3D导出模型加载错误 laya.core.js:12371 Uncaught Error: LoaderManager:unknown file(http://127.0.0.1/layaair/myLaya3D1/bin/null path) extension with: 1. at LoaderManager.__proto._create (laya.core.js:12371) at LoaderManager.__proto.create (laya.core.js:12339) at Loader.Laya3D._onHierarchy...

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

69. 调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 [ 83%]

调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 请问关于场景如果加载已经缓存的。官方有一篇文章是介绍微信物理缓存的。只是说downLoadFile之后,会缓存起来,我一直天真的以为缓存...

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

70. 分享:LayaAir下如何加载和使用.JSON文件[ 82%]

...:LayaAir下如何加载和使用.JSON文件! package { import laya.net.Loader; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():v...

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