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

大约有 272 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0047 秒)

191. 小游戏对读取json文件有要求吗?为啥说读取json文件错误啊 [ 62%]

...,视项目情况自行修改或拓展 public static var getUrlAndEncode:Function = function(url:String,type:String):String { if (url.indexOf(".fnt") != -1 || url.indexOf("xxx.json") != -1) { return "utf8"; } else if (type == "arraybuffer") { return ""; } return "ascii"; } 2018-01-15 0 0 分享 微...

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

192. 背景音乐播放完毕要等很久才开始循环播放,版本1.7.17 [ 62%]

...以及获取声音信息。          */         public static function playMusic(url:String, loops:int = 0, complete:Handler = null, startTime:Number = 0):SoundChannel { 你的参数传入是否正确那? 或者能否发一下你出问题部分的代码或者小demo那? 2018-04-17 0 ...

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

193. 有打地鼠游戏的源代码吗? [ 62%]

...示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function JS打地鼠 加载资源图片失败 按照打地鼠教程来无法正常加载资源 看打地鼠的Demo的几个疑问 问题状态 最新活动: 2018-02-08 19:32 浏览: 1433 关注: 2 人 Laya_Aaron • 2018-02-0...

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

194. layaair1.5.4测试版本ide下调试 报protobuf错误 [ 61%]

...callBack: null, _proxy: Proxy, _data: null…} TypeError: require is not a function at Object.ProtoBuf.Util.Util.fetch (file:///D:/workspace_laya/car_h5_nonet/bin/h5/protobuf.js:354:26) at Object.ProtoBuf.loadProtoFile (file:///D:/workspace_laya/car_h5_nonet/bin/h5/protobuf.js:5150:38) at msg_cs.__p...

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

195. 【分享】微信小游戏解析xml适配 [ 61%]

...具导入Laya小游戏程序 报错了 xml.getElementsByTagName is not a function 2018-07-05 0 1 分享 微博 QZONE 微信 yminhao 赞同来自: 感谢分享,完美解决在微信开发工具中,用Laya.BitmapFont的loadFont方法,加载位图字体失败,报gameThirdScriptError的错误...

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

196. 安卓包一些网络下,一进入游戏就会报错 [ 61%]

...Array的zlib.min.js后报错 导微信小程序报错window.focus is not a function 官方新手游戏引导示例中关于hit和unHit的使用疑问 问题状态 最新活动: 2019-05-21 20:32 浏览: 1045 关注: 2 人

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

197. 出错啦,请把此信息截图给研发商Uncaught typeError:cannot read property [ 61%]

...代码 Fb编译运行出错 浏览器运行提示TypeError: xxx is not a function 和创建精灵一样new Rand()出错 打包apk Uncaught SyntaxError: Unexpected token 'export’ 问题状态 最新活动: 2021-12-27 19:33 浏览: 2794 关注: 2 人

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

198. laya发布vivo小游戏失败 [ 61%]

...ministrator\AppData\Roaming\npm\node_modules\@vivo-minigame\cli\bin\mg' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15) at Function.Module._load (internal/modules/cjs/loader.js:841:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at ...

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

199. 如何使用TS的命名空间(namespace)? [ 61%]

...用的namespace。   export namespace mvc{ const commandMap = {}; export function registerCommand(){ //doSomething }; export interface ICommand{ excute(type:string, params:any):void; } }   2019-09-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...

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

200. LayaAirIDE2.7版本导出类名不正确问题 [ 61%]

...以看到只在window上挂载了大写Laya的命名空间 window.Laya= (function (exports) { ...... exports.Sprite = Sprite; exports.EffectAnimation = EffectAnimation; ..... return exports; })({}))那么出现这个问题的原因是官方在LayaAirIDE类导出部分的代码有变化,在2.6版...

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