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

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

181. JSON文件加载成功后,怎么解析成Object对象 [ 71%]

...-----------------------package { import laya.display.Text; import laya.net.Loader; import laya.utils.Handler; /** * ... * @author OttoChen */ public class TestMain { private var txt:Text = null; public function TestMain() { Laya.init(800, 800); txt = new Text(); txt.mouseEnabled = false; txt.overflo...

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

182. 在加载多个资源的时候,加载进度异常 [ 70%]

在加载多个资源的时候,加载进度异常 Laya.loader.load(["res/atlas/images.atlas", "res/atlas/f1.atlas", "res/atlas/f2.atlas", "res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"],   Laya.Handler.create(this, function(){ }),  Laya.Handler.create(this, function(e){    c...

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

183. 加载lh格式模型报错 [ 70%]

...file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.d3.js:30804:26)   at Loader._onHierarchylhLoaded (file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.d3.js:30899:17)   at EventHandler.runWith (file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.core.js:999:38)   at Loader.event (file:///D:...

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

184. laya.net.LoaderManager [ 70%]

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

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

185. 二进制文件打包后,读取不到zip包内的文件 [ 70%]

...要代码如下    let loaditem = [{ url: "test.zip", type: Laya.Loader.PLFB }]         Laya.loader.load(loaditem, Laya.Handler.create(this, function (res) {             let item = 'res/layabox.png'             let getres = Laya.loader.getRes(item...

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

186. Laya.SoundManager.playSound 无法播放出音效 [ 70%]

...不能正常播放,也没有任何错误提示 然后尝试先调用Laya.loader.load("sfx/hit01.mp3",new Laya.Handler(this,this.onBgmComplete),null,Laya.Loader.SOUND);然后在onBgmComplete的回调里面再调用播放,就会提示 [warn]Retry to load: sfx/hit01.mp3 [error]Failed to load: sfx/h...

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

187. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 70%]

...型,想给它六个面贴不同的贴图,该如何处理? 请问下loader如何强制加载一个文件,避免浏览器的缓存 我刚开始使用layabox,发布了一个h5,但是手机上应该怎么打开这个网页呢 请教一个关于laya2.5d项目美术规范的问题哈 drawCurve...

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

188. 分享:Graphics下cmds命令流的使用! [ 70%]

...ge { import laya.display.Sprite; import laya.maths.Matrix; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class GraCmdsDemo { public function GraCmdsDemo() { //初始化舞台 Laya.init(Browser.width,Browser...

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

189. 3d模型预加载后二次调用报错 [ 70%]

3d模型预加载后二次调用报错 使用Laya.loader.create 预加载,第一次用Laya.Sprite3D.load("xxx.lh").getChildAt(0) 可以创建,第二次再调用Laya.Sprite3D.load("xxx.lh").getChildAt(0) 创建就返回undefined了,help~ 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE ...

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

190. 玩一玩项目中加载 .proto和.txt文件失败,加载 xml, 图集等是正常的 [ 70%]

...败,加载 xml, 图集等是正常的 如题所述。 使用的是 Laya.loader.load(...) 加载。 加载 .proto或者 .txt 等文件时,getRes 的结果都是一个 10282 长度的 ArrayBuffer ,用 TextDecoder 导出来是如下字符:   附件 : --> 2018-03-27 添加评论 免费帖...

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