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

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

131. Cannot read property 'load' of null [ 93%]

LayaAir引擎 Cannot read property 'load' of null 查了断点,看到Laya.loader是null,为什么会出现为null的情况?  代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static...

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

132. 发布微信小游戏,报错Cannot read property 'events' of undefined [ 93%]

发布微信小游戏,报错Cannot read property 'events' of undefined 项目发布后报错,自己的项目用的1.7.16 下载了官方的实例发布后的code跟自己的code比对了下··对应位置的代码是不一样的, 同时我将项目的引擎升级到1.7.20,依然在报错...

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

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

使用高度图的时候 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

134. TypeError: Cannot set property 'pivotX' of null 打开弹窗UI时报错 [ 93%]

TypeError: Cannot set property 'pivotX' of null 打开弹窗UI时报错 附件 : --> 2020-01-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 159*****388 赞同来自: 请问问题解决了吗   2020-04-05 0 0 ...

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

135. Cannot read property 'rayCast' of undefined [ 92%]

Cannot read property 'rayCast' of undefined export default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let conf...

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

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

播放swf动画的时候,会出现 Cannot read property 'dir' of undefined崩溃 这个是出错信息 this.basePath=this._atlasPath?Loader.getAtlas(this._atlasPath).dir:this._url.split(".swf")[0]+"/image/";    我们采用的播放模式是this.effectMovieClip.load(effectsPath,true);  effects...

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

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

2d示例项目打包为微信小游戏报错,Cannot read property 'LESS' of null 上个帖子点下面确认发起后哪也找不到了,很奇怪,再发一次。 上面截图来自 Render 的rinitRender  方法 总返回null 已上传附件 附件 : --> wxgame.zip 2022-06-16 添加评论 ...

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

138. [ts] cannot find name 'laya' [ 92%]

[ts] cannot find name 'laya' 程序可以运行,但是编译器报错,ts版本不一样 2018-08-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 提供的报错信息不好排查你说...

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

139. laya 1.7.8beta 运行protobuf的例子,报错“cannot read property ‘create’of null” [ 92%]

laya 1.7.8beta 运行protobuf的例子,报错“cannot read property ‘create’of null” 2017-08-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 ilovelaya 赞同来自: index里面两个文件也是引入...

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

140. 微信小游戏 code.js 报错 Cannot read property 'apply' of undefined [ 92%]

微信小游戏 code.js 报错 Cannot read property 'apply' of undefined WAGame.js:4 gameThirdScriptError Cannot read property 'apply' of undefined;at socketTask.onopen callback function TypeError: Cannot read property 'apply' of undefined     at Function.eof (http://127.0.0.1:25423/game/code.js:...

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