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

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

1. TypeError: Cannot read property 'on' of null [ 100%]

TypeError: Cannot read property 'on' of null 按钮点击报错 同一个页面中包含多个view组件,总scence上使用gamecontrol脚本注册各个组件,在分view上设置按钮点击事件,运行即报错 取消第二个页面的按钮.on之后不报错 附件 : --> example.rar 2019-0...

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

2. 使用as3开发时候添加事件.on会报错。Uncaught TypeError: Cannot read property 'on' of null [ 97%]

使用as3开发时候添加事件.on会报错。Uncaught TypeError: Cannot read property 'on' of null  是2.0的使用方式有什么变化了么?我是按照官方的视频教程一步步写的。还有一个dialog页面,即便不添加到舞台上,运行的时候它也会自动出现在舞...

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

3. TypeError: Laya.Browser.window.conch.setFontFaceFromBuffer is not a function [ 97%]

TypeError: Laya.Browser.window.conch.setFontFaceFromBuffer is not a function TypeError: Laya.Browser.window.conch.setFontFaceFromBuffer is not a function   2.0 打包apk启动就报这个错, 1.0 是没有问题的 2020-01-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

4. TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' [ 95%]

TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' 使用1.7.15或16,在项目总增加如下几句,在layaAir内测试可以正常(以下资源是拷贝自GitHub上官网的范例包下的资源: // 创建天空盒 var skyBox:Laya.SkyBox = new Laya.SkyBox(); //清除标...

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

5. 播放音效时报错Failed to set the 'buffer' property on 'AudioBufferSourceNode'的问题 [ 88%]

播放音效时报错Failed to set the 'buffer' property on 'AudioBufferSourceNode'的问题 __proto._tryClearBuffer=function(sourceNode){ // if (!Browser.onMac){ // try{ // sourceNode.buffer=null; // }catch (e){ // WebAudioSoundChannel._tryCleanFailed=true; // } // return; // } try {sourceNode.buf...

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

6. XmlDom类没有了?解析xml时,报错Property 'attributes' does not exist on type 'Node & ChildNode'. [ 86%]

XmlDom类没有了?解析xml时,报错Property 'attributes' does not exist on type 'Node & ChildNode'. XmlDom没有了吗?要用哪个类? 我只找到原生的XMLDocument,可是报错 Property 'attributes' does not exist on type 'Node & ChildNode'. 谁 遇到过?let local_confi...

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

7. this.bitmap.activeResource is not a function TypeError: this.bitmap.activeResource is not a function [ 86%]

this.bitmap.activeResource is not a function TypeError: this.bitmap.activeResource is not a function if (bitmap&&bitmap._addReference){ bitmap._addReference(); } 这个代码过滤已经加了,但是会报下面这个错 this.bitmap.activeResource is not a function TypeError: this.bitmap....

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

8. Uncaught TypeError: Game.super is not a function [ 84%]

Uncaught TypeError: Game.super is not a function var Game = (function(_super){ function Game() { Game.super(this); } Laya.ClassUtils(Game,"Game",_super) return Game; })(ui.GameUI) 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

9. 使用高度图的时候 Cannot read property 'width' of undefined [ 84%]

使用高度图的时候 Cannot read property 'width' of undefined var terrainSprite = Laya.MeshTerrainSprite3D.createFromMeshAndHeightMap(terrain.meshFilter.sharedMesh, texture, 45.58879852294922, -45.58879852294922); //报错:Cannot read property 'width' of undefinedDemo见附件。   附件 :...

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

10. 请问在layaIDE里,怎么调用微信小程序API [ 84%]

请问在layaIDE里,怎么调用微信小程序API 我写了 wx.***,他不认识啊。并且编译也不过啊。 2018-04-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 13 个回复 雨送黄昏 赞同来自: 晖 、...

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