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

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

21. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” [ 83%]

子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” 发射时生成子弹: onFire() { if (this.isFire) { Laya.Mesh.load("fly2/fly3-bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn...

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

22. 为什么mc取得的时候有时候mc.getBounds().width;有值有时候是0 [ 82%]

为什么mc取得的时候有时候mc.getBounds().width;有值有时候是0 Event.LOADED事件后输出宽度有时候还是0有时候却有值。这个是为什么呢?已经是在loaded事件以后的输出了。 附件 : --> 2016-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

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

为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null   附件 : --> 2017-12-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 6 个回复 melody0529 赞同来自: (function(){ var Stage=Laya.Stage;...

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

24. Uncaught TypeError: Cannot read property 'props' of undefined [ 82%]

Uncaught TypeError: Cannot read property 'props' of undefined 按照官方提供的代码,导入从unity导出的场景,出现此错误,代码如下 var Main = (function () { function Main() { //初始化引擎 Laya3D.init(0, 0,true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.s...

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

25. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 82%]

跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 偶发性bug。 Uncaught (in promise) TypeError: Cannot read property 'width' of null     at Function.Texture._create (laya.core.js:15946)     at Texture.__proto._onLoaded (laya.core.js:15750)     at EventHandler._...

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

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

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

27. Cannot read property 'rayCast' of undefined [ 82%]

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

28. Request failed Status:404 text:undefined [ 81%]

Request failed Status:404 text:undefined 2019-09-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ln_chenchao(༒) 赞同来自: 有没有人可以帮忙回答一下。   2019-09-21 0 0 分享 微博 QZONE ...

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

29. Uncaught unknown animationClip version. [ 81%]

Uncaught unknown animationClip version. Unity版本5.6.5,动画角色和动画AnimationType都选择了Generic。 第一次无法正常导出,逛了论坛后发现,目前不支持表情动画,删除表情动画后重新导出,Unity内可正常运行,导出到Laya中后,加载场景提...

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

30. XMLHttpRequest cannot load [ 81%]

XMLHttpRequest cannot load 生成的h5文件,在电脑上的浏览器上打开,就出现加载不出来…… 附件 : --> 2018-01-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 qian 赞同来自: 你这...

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