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

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

111. getItemByClass(sign:String, cls:Class):*,怎么给Class的构造函数传参? [ 68%]

...行域 的详解 如何定义动画播放过某帧后的回调函数 Laya.loader.create 进度回调函数执行两次 Warning!,this class[MiniAdpter] already exist: Object {init: } js调as函数 undifine 怎么停止正在运行Laya.timer.frameLoop的回调函数 load 加载完图集 回调函数...

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

112. 微信小游戏报错 the .lh file root type must be Scene [ 68%]

...) at ResInfo.__proto.event (http://127.0.0.1:62629/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:62629/game/code.js:13152:11) at Loader.onLoaded (http://127.0.0.1:62629/game/code.js:13128:10) at EventHandler.__proto.runWith (http://127.0.0.1:62629/game/code.js:711:59) at L...

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

113. 音频在设置音量大小scale=0时SoundManager无法回调, 并且阻塞所有laya本身的callback [ 68%]

...无法触发, 并且导致游戏内之后的流程中所有callback如Laya.loader.load(), SoundManager.playSound()等一系列系统方法无法回调. 解决方案: 尽量适用scale作为暂停时音量控制. 或者设置为很小的值如0.001.   简单写法如在init中: SoundManager.playS...

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

114. 请问在设计模式下制作的UI页面,到底怎么在代码里使用???官方教程一样 [ 68%]

...图片资源的atlas文件,何解???例如官方的例子:Laya.loader.load(["./res/atlas/ListPage.atlas", "res/atlas/template/ButtonTab.atlas"], Handler.create(this, this.onLoaded)); 而我F12发布,根本没有这个ListPage.atlas,只有ButtonTab.atlas     附件 : --> 2017-09-04 ...

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

115. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 68%]

...Mode="horizontal"; //加载FGUI中的文件 var ProgressBar,resArray; Laya.loader.load([ {url:"res/Public.fui",type:laya.net.Loader.BUFFER}, {url:"res/Public@atlas_ucn9w.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas_ucn90.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas0.png",type...

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

116. 龙骨动画如何预加载 [ 68%]

...接 提交 1 个回复 cuixueying 赞同来自: 预加载资源请用Laya.Loader.load,卸载资源请用Laya.Loader.clearRes,具体示例请参考:http://layaair.ldc.layabox.com ... leton 2017-03-20 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

117. 微信小游戏加载ProtoBuf文件和图片加载问题 [ 68%]

...oadArr:Array = new Array; loadArr= [{url: "res/atlas/hall_new.json", type: Loader.ATLAS}, // {url: "res/atlas/help.json", type: Loader.ATLAS},  // {url: "res/atlas/shop.json", type: Loader.ATLAS}, // {url: "shmjAssets/扣牌文字背景.png", type: Loader.IMAGE}, //这张图有问题。 ]; Laya.loa...

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

118. comp,json [ 68%]

...是html路径 我应该如何处理 微信小程序里加载json文件 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并能真正释放资源的bug 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 atlas目录下.json文件与.at...

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

119. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 68%]

ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null   附Demo。   想做同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityP...

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

120. 3D模型旋转定位问题 [ 68%]

...sprite3D对象 附件上传了我的工程文件。   如果是使用Laya.loader.create("model/build/warehouse1/warehouse1.lh", Laya.Handler.create(this, onComplete)); function onComplete() { //仓库原型 warehouse1 = Laya.Sprite3D.load("model/build/warehouse1/warehouse1.lh"); scene.addChild(ware...

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