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

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

251. 2d示例项目打包为微信小游戏报错,Cannot read property 'LESS' of null [ 54%]

...rty 'LESS' of null TypeError: Cannot read property 'LESS' of null     at Function.value (http://127.0.0.1:43542/game/li ... :19438)     at Object.value [as init] (http://127.0.0.1:43542/game/li ... 515524)     at new Main (http://127.0.0.1:43542/game/js/bundle.js:267:90)   LESS是LayaGL.insta...

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

252. unity插件报错 [ 54%]

...t(3); runtime运行报错! 导微信小程序报错window.focus is not a function 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 本地调试加载本地图片都报...

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

253. 分离模式下使用自定义场景类 [ 54%]

..._proto.parseTsImport”,修改该函数体内容:__proto.parseTsImport=function(str){ var tStr = str.replace("import",""); str = 'from'; str = tStr.indexOf(str) > -1 ? str : '='; tStr = StringTool$1.trimSide(tStr.split(str)[0]); this.importDic[tStr] = true; }当然也可以把CodeManager.pars...

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

254. 重力感应 Accelerator 发布微信游戏后失效。是因为什么? [ 53%]

...? Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); function monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) {         let x = accelerationIncludingGravity.x;         let y = accelerationIncludingGravity.y; }   发布微信游戏...

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

255. LayaAirID 打包app测试 apk无法开启webgl。用浏览器扫码进入就没问题 [ 53%]

...的。 /** *指定显示对象 *@param index */ __proto.showDisplayByIndex=function(index){ if (this._replaceDic[index]) index=this._replaceDic[index]; if (this.currSlotData && index >-1 && index < this.currSlotData.displayArr.length){ this.displayIndex=index; this.currDisplayD...

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

256. iframe页面嵌套下失焦(焦点在父窗口被聚焦),playMusic背景音乐播放无声音 [ 53%]

...父窗口被聚焦),playMusic背景音乐播放无声音 public static function playSound(url:String, loops:int = 1, complete:Handler = null, soundClass:Class = null, startTime:Number = 0):SoundChannel { if ((!_isActive && loops != 0) || !url) return null; if (_muted) return null; _recover...

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

257. LayaAir中怎么使用node.js 的 socket.io [ 53%]

...ct(); as的使用方法 var xx:* = __JS__('io.connect()'); xx.on('connect',function():void{trace("dddd")}); piaobo80 • 2017-08-18 14:12 如果ts呢引入js后改怎样在ts中调用呢? Laya_XS • 2017-08-19 14:36 你需要弄个TS的接口提示文件,引入js在ts中是一样的 p...

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

258. 使用js压缩工具报错 [ 52%]

...查看具体报错的功能。   ERROR:invalid property id   interface:function(name,_super){ Laya.__package(name,{}); var ins=Laya.__internals; var a=ins[name]=ins[name] || {self:name}; if(_super) { var supers=_super.split(','); a.extend=[]; for(var i=0;i<supers.length;i++){ var nm=supers[i]...

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

259. [LayaAir3]LayaNative ios使用TTF字体启动奔溃 [ 52%]

...f30 <+76>:  bl     0x1c1b38f5c               ; std::__1::function<void (unsigned int, bool*)>::operator()(unsigned int, bool*) const 附件 : --> shell.zip 2024-01-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

260. [0]layaair2-cmd 编译bug [ 51%]

...:10)     at Module.load (internal/modules/cjs/loader.js:812:32)     at Function.Module._load (internal/modules/cjs/loader.js:724:14)     at Module.require (internal/modules/cjs/loader.js:849:19)     at require (internal/modules/cjs/helpers.js:74:18) exit:1 [qykings@ cq3]$ [qykings@ cq3]$ [...

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