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

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

371. 自定义控件能否放在任意目录 [ 59%]

...下吗 能否恢复Animation.getGraphicBounds在1.6时的用法 请问Laya.loader.load资源缓存在哪里?能不能把这个缓存目录里的资源加入NativeFile白名单? 如何使用list控件做一个游戏背包功能? 资源编辑器的label控件的垂直居中有问题 发布版本...

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

372. WebGLContext2D.setIBVB这个函数在2.0里没有了用什么代替? [ 59%]

...怎么停止正在运行Laya.timer.frameLoop的回调函数 请问laya.net.Loaderlaya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 Uncaught Error:此函数id(167),ctype(167)报错? 代码重用和公共函数的疑问...

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

373. 在native下 Laya.Browser.window.Blob不存在 [ 59%]

...ch.getCachePath()+"/test.png", png);保存到本地,然后再用laya.net.Loader加载,我刚才试了一下,加载报错,我不知道我这种方法可不可行。 test: function (base64Str, sprite) { var imageData = base64Util.decode(base64Str); var address = conch.getCachePath() + "/test.p...

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

374. Laya IDE横竖屏切换时,不断刷新 [ 59%]

...a.stage.scaleMode = 'exactfit'; Laya.stage.screenMode = 'horizontal'; Laya.loader.load(['res/atlas/view.atlas'], Handler.create(this, initGame)); Laya.timer.frameOnce(1, this, function () { Laya.stage.on(Event.RESIZE, this, function () { window.location.reload(); }) }) 2018-04-16 添加评论 免费...

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

375. 播放swf动画的时候,会出现 Cannot read property 'dir' of undefined崩溃 [ 59%]

...ir' of undefined崩溃 这个是出错信息 this.basePath=this._atlasPath?Loader.getAtlas(this._atlasPath).dir:this._url.split(".swf")[0]+"/image/";    我们采用的播放模式是this.effectMovieClip.load(effectsPath,true);  effectsPath 是路径 我们的swf 文件在附件中, 附件 : --...

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

376. 请问UI之间的场景切换要怎么写 [ 59%]

...ya.stage.scaleMode = "showall"; Laya.stage.screenMode = "horizontal"; Laya.loader.load("res/atlas/sanguo.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); function onLoaded(){ Laya.sg_sign = new sg_sign(); Laya.stage.addChild(Laya.sg_sign); } function onWxSign1(){ Laya.sg_sign.remove...

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

377. t._addReference is not a function [ 59%]

... llc 赞同来自: 碰到相同的问题,解决了,供参考: Laya.loader.load(chapterBG, Laya.Handler.create(this, this.onBGLoaded, [chapterBG])/* , Laya.Handler.create(this, this.onBGLoadProgress) */); 第三个参数打开在某些条件下会出t._addReference is not a function 可能是...

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

378. 如何制作天空盒所需的.ltc文件 [ 59%]

...官例里载入的那些json文件是用什么软件生成的? 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2017-12-07 14:57 浏览: 1584 关注: 3 人 guangmiao123 • 2017-12-07 15:02 emmmm....天空盒我知道做,那个后缀ltc的文件...

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

379. 微信小游戏里面开放数据域的资源加载问题 [ 58%]

...nction.MiniFileMgr.readFile (http://127.0.0.1:63435/game/op ... 418:14) at Loader.__proto.load (http://127.0.0.1:63435/game/op ... 115:18) at LoaderManager.__proto._doLoad (http://127.0.0.1:63435/game/op ... 296:10) at LoaderManager.__proto._next (http://127.0.0.1:63435/game/op ... 269:26) at Loader...

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

380. 在微信小游戏中使用BitmapFont会导致报错. [ 58%]

...  Laya.Text.registerBitmapFont('Name', timerFont);         Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded));     })); }  function onLoaded(): void {     //实例UI界面     var testUI: TestUI = new TestUI();     Laya.stage.addChild(testUI); } 附...

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