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

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

61. as3 包内公共函数无法编译,运行时提示 XX is not a function [ 88%]

as3 包内公共函数无法编译,运行时提示 XX is not a function 如题,编译没有提示出错,但运行时报错,实在找不出原因。 奇怪的是,TestFunc执行没有报错,HandleMsgResult却报错,其它的方法也一样; 查询编译出来的max.js文件,发现Hand...

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

62. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 88%]

...点添加新创建的图片,会报这个错:node._setParent is not a function this.imageBg = this.owner.getChildByName("image_bg"); console.log("this.imageBg==="+this.imageBg); for (let iColumns = 1; iColumns < this.intColumns; iColumns++) { this.arrLove[iColumns] = []; for (let iRows = 1; iR...

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

63. laya native是用不了drawToCanvas方法的么?一调用就会提示gl.readPixels is not a function。如果不能用的话,有没有其它替代方案? [ 87%]

...了drawToCanvas方法的么?一调用就会提示gl.readPixels is not a function。如果不能用的话,有没有其它替代方案? 附件 : --> MyAS3DTest.zip 2019-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

64. [TMA][ERROR][RUNTIME] thirdScriptError undefined;at api readFile success callback function [ 87%]

...RROR][RUNTIME] thirdScriptError undefined;at api readFile success callback function 调用资源加载,不管是异步加载还是预加载,在Android平台没问题,到IOS平台就报这个错:   [TMA][ERROR][RUNTIME] thirdScriptError undefined;at api readFile success callback functi...

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

65. 构建好android studio项目后,debug出错 [ 87%]

... alert=undefined:5155: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode let runtime = json.props.runtime; ^^^ SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode at eval (native) at Docum...

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

66. TypeError: Cannot read property '_layer' of null; at Function.FrustumCulling.renderObjectCulling [ 87%]

TypeError: Cannot read property '_layer' of null; at Function.FrustumCulling.renderObjectCulling 写了一个可以随机生成物体的生成器,当发生碰撞就销毁,启动之后报这个错,如果不销毁就没有问题。 附件 : --> 2018-12-10 添加评论 免费帖 --> 分享 微...

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

67. 加载-错误处理和进度 [ 86%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Event = Laya.Event; var Loader = Laya.Loader; var Texture = Laya.Texture; var Handler = Laya.Handler; (function() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls = ["do not ...

来源: Laya_示例 发布时间: 20240930

68. BackGround.super(this);这个报错 Cannot read property 'call' of undefined [ 86%]

...1-10 0 1 分享 微博 QZONE 微信 oy2419498011 赞同来自: var shouye=(function(){ (function shouye(){ Laya.init(100,300); this.bgimg=new BackGround(); Laya.stage.addChild(this.bgimg); })(); return shouye; })(); var BackGround = (function (_super) { function BackGround() { BackGround.super(thi...

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

69. "Background is not defined"怎么会没定义呢???求救 [ 86%]

...0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: Game.jsvar Game = (function(){ (function Game(){ Laya.init(600,800); this.bg = new window.Background(); Laya.stage.addChild(this.bg); })(); })();Background.js var Background = (function(_super){ function Background(){ Background.super(this); th...

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

70. 飞机大战出现的问题注册了类New的时候报错未定义 [ 86%]

...机大战出现的问题注册了类New的时候报错未定义 var Game=(function(){ (function Game(){ Laya.init(400,852); this.bg = new BackGround(); //把背景添加到舞台上显示出来 Laya.stage.addChild(this.bg);  })();     })();   //循环滚动的游戏背景 var BackGround = (func...

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