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

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

541. [临时解决]bug?加载sk问题 [ 78%]

...是加载sk完成前,就调用动画导致 因此,在最开始用Laya.loader.Load(["drgon.sk"]......)这样的方式预加载 !!!结果,预加载时报错,就是这里: laya.core.js的7430行    if (this._pos_+2 > this._length)throw "getUint16 error - Out of bounds"; 但是,...

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

542. laya.net.LoaderManager [ 78%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderManagerProperties | Methods | Events Packagelaya.netClasspublic class LoaderManagerInheritanceLoaderManager EventDispatcher Object LoaderManager 类用于用于批量加载资源。此类是单例,不要手动实...

来源: Laya2.0_api 发布时间: 20190513

543. as3.0语言下2dmatter.js物理引擎的配置 [ 78%]

... 微博 QZONE 微信 131*****809 赞同来自: <script scr='matter.js' loader='laya'></script> <script scr = 'LayaRender.js' loader='laya'></script> <script src='LayaSample.max.js' loader='laya'></script>引用了呀 2018-07-16 0 1 分享 微博 QZONE 微信 为...

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

544. 请问laya里如何解析json,似乎和AS3的不太一样。 [ 78%]

...自: SONIC3D 、sevennqi public function BBB() { Laya.init(550,400); Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("res/atlas/comp.json"); }JSON的解析和AS3的是一样的   2016-10-2...

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

545. AS3里的ByteArray 对应的是TS里的什么类型? [ 78%]

...白名单文件适用于JS和TS吗 ProtoBuf 其他消息类型怎么使用 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug Laya2.0枚举类型获取不了 自定义场景类型 请问laya.net.Loader和laya.net.LoaderManager哪些函数支...

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

546. IDE 怎么获取Json数据 [ 78%]

...对json进行预加载,加载完成后获取json的数据,如下 Laya.loader.load("aaa.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var js:JSON=Laya.loader.getRes("aaa.json"); trace(js); }2、你如果是想使用file读取文件的方式,这个...

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

547. httpReqest读取数据问题 [ 78%]

...: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 通过loader加载js文件获取的内容只有两种格式:一种是文本文件,一种是二进制,如果你在加载文件时没有指定加载类型,那么返回的就是文本类型,这个是没问题的,如果你...

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

548. 隐藏默认的虚拟键、屏蔽APP窗口弹出脚本错误信息 的问题 [ 78%]

...nction LoadRes() { var resArray = [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) } function LoadResCompl...

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

549. clearUnLoaded的bug LayaAirIDE1.7.9 [ 78%]

... arr = [res.popup.atlas("loadingUI"), res.download.bg("bg5")]     Laya.loader.load(arr, Laya.Handler.create(this, onComplete))     Laya.loader.clearUnLoaded()     Laya.loader.load(arr, Laya.Handler.create(this, onComplete)) }  function onComplete(){     trace("complete") } Resources...

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

550. 内存和显存的释放 [ 78%]

...512,不管是宽还是高,都可以在销毁使用对象后,在通过Loader.clearRes来及时释放你的图片内存。而小于512的资源默认会被存到我们的动态图集里,这些资源的内存占用你手动清理不掉,在动态图集资源存满了,我们会把不用的资...

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