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

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

131. Cannot read property 'toDefault' of undefined报错是什么原因 [ 70%]

Cannot read property 'toDefault' of undefined报错是什么原因 主要代码如下:Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.cle...

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

132. 两个小问题 [ 70%]

两个小问题 1、一个面板中含有几个按钮,分别为按钮添加 this.myBtn.on(Event.CLICK) 事件,点击某按钮后有时还会发送事件 this.event(...),在关闭面板时设置 this.removeSelf() ,下次生成同类型的对象面板可正常打开;若在关闭时设成 th...

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

133. this.btClose1.on(Laya.Event.CLICK,null,this.close);报错 [ 70%]

this.btClose1.on(Laya.Event.CLICK,null,this.close);报错 this.btClose1.on(Laya.Event.CLICK,null,this.close); 这句代码报错  附件 : --> 2017-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueyin...

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

134. typeScript Java互调问题 [ 70%]

typeScript Java互调问题 JAVA代码 ———————————————————————————————— public class MainActivity extends Activity{          private IPlugin mPlugin = null;     private IPluginRuntimeProxy mProxy = null;     boolean isLoad=fal...

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

135. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 70%]

简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 相关代码:(可以参考你们官网的粒子效果的例子:http://layaair.ldc.layabox.com/demo/?Particle_T1  ) 主要就是: Laya.loader.load("SnowParticle.part", Handler.create(this, onAssets...

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

136. this.bitmap.activeResource is not a function TypeError: this.bitmap.activeResource is not a function [ 70%]

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

137. Layabox的event方法在云真机与脚本录制中会报错?(与微信官方联系过,觉得是引擎自身问题) [ 69%]

Layabox的event方法在云真机与脚本录制中会报错?(与微信官方联系过,觉得是引擎自身问题) this.resetBtn.event(Laya.Event.CLICK);   该代码会引发Layabox在云真机与脚本录制中出现以下两种报错,而在正常运行过程中,不会出现该错误...

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

138. A B两物体触发时会报null [ 69%]

A B两物体触发时会报null A B两物体发生触发 我在A里面直接销毁掉了B(一堆小怪) 然后轮到B掉用触发器的时候 里面访问了owner就报空了  现在暂时只能不销毁发生触发的那个B对象才正常 具体报错为"cannot read property '_scripts' of null" ...

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

139. 3d场景下载出错 [ 69%]

3d场景下载出错 loader.create  这个接口 能否支持不创建3Dscene对象, 或者新扩展一个接口  只下载对应的3D资源. 不创建3DScene, 因为 当网络异常的时候资源会下载失败,但是底层还是会创建3D对象, 底层一定会报错  {"message":"gameThirdSc...

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

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

播放音效时报错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