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

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

231. 急急 在线等 加载xml 后直播无法自动播放 附示例项目 [ 74%]

... 附示例项目 LoaderPolicy.setup(URLResolver.solvePath("files.fst?"), Handler.create(this, function xload() : void { //无法播放 Laya.loader.load(URLResolver.solvePath("config.xml"), Handler.create(this, onConfigLoaded), null, Loader.XML); //直接调用可以正常播放 //onConfigLoaded(null...

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

232. loader.create加载.lh文件,如果文件不存在,也不会受到Event.Error事件 [ 74%]

...   Loader触发error事件后,Loader上没有任何监听error事件的handler,所以错误传递到这里就停止了。 2017-07-11 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 收到,我们看下! 2017-07-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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

233. 高级应用-实时阴影 [ 74%]

...ane.lh", "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh" ], Laya.Handler.create(this, onComplete)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.directi...

来源: Laya_示例 发布时间: 20251209

234. 关于Laya.loader.load和getRes的问题 [ 74%]

...2:使用drawTexture Laya.loader.load("../../../../res/apes/monkey2.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("../../../../res/apes/monkey2.png"); var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); })); ...

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

235. 预加载音频文件遇到的问题 [ 74%]

...//加载声音资源 Laya.loader.load("res/sound/bloodstream_bg.mp3", Laya.Handler.create(this, onLoadedSound), null, Laya.Loader.SOUND); // })(); function onLoadedSound(){ Laya.SoundManager.playMusic("res/sound/bloodstream_bg.mp3", 0, Laya.Handler.create(this, onComplete)); } function onComplete(){...

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

236. protobuffer加载失败 [ 74%]

...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/ProtobufLoadTest/bin/res/protobuf/user.proto 但是...

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

237. 微信资源加载问题 [ 74%]

...服务器上面,然后我用loader加载 Laya.loader.load(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) }, null, false)) 项目是微信小游戏 ...

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

238. graphics使用matrix的异常情况 [ 74%]

...使用matrix的异常情况 Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); ape.graphics.scale(1.01, 1) Laya.stage.addChild(ape); ape.pos(200, 0); }))...

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

239. JS进度条加载问题 [ 74%]

... proArr = []; proArr[0]=pro1; proArr[1]=pro2; Laya.loader.load(proArr,Laya.Handler.create(this,onProLoaded)); if(Laya.Browser.onAndriod) { Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; } else { Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; } Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.s...

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

240. Laya.Geolocation使用报错 [ 73%]

...Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); 报错如下: TypeError: Cannot set property 'enableHighAccuracy' of undefined 会出现无法找到Laya.Geolocation的各类属性错误...

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