大约有 28 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0045 秒)
...Laya.loader.getRes("res/lk4.lh") as Laya.Sprite3D; //加载到场景 scene.addChild(role3D); //此处报错 var ani = role3D.getComponent(Laya.Animator) as Laya.Animator; //播放攻击状态 ani.play(); chrome 调试: addChild(node) { if (!node || this.destroyed || node === ...
来源: Laya_社区 发布时间: 20191203
... //imgLove.pos(iRows*this._x + 120 , iColumns*this._y + 320); this.imageBg.addChild(imgLove); } }TypeError: node._setParent is not a function preload.js:55 at Image.__proto.addChild (file:///E:/laya/myLaya/myZootopia/bin/libs/laya.core.js:20925:9) at LoveControl.createLoveArr (file:///E:...
来源: Laya_社区 发布时间: 20190625
... = Laya.HTMLIframeElement; var iHtml = new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href="http://www.baidu.com"; 一启动运行就现以下错误 Error processing "variables": TypeError: Cannot read property 'length' of undefined at trimProperty (d:\Program Files\LayaIDE\resources\...
来源: Laya_社区 发布时间: 20171203
...s.drawImage(interceptT, 0, 0, btn_edit.width, btn_edit.height); Laya.stage.addChild(img); 如图和代码(一个按钮点击后draw图然后加入stage) 只要添加至stage后,随后就会出现这个错误,跟踪查到传入的不是WebGLTexture而是一个canvas,应该是渲染出...
来源: Laya_社区 发布时间: 20190422
使用 addChild 加载界面后,绑定事件报错 onConfigLoaded(): void { //加载IDE指定的场景 //GameConfig.startScene && Laya.Scene.open(GameConfig.startScene); Main.gameStart = new GameStart(); Laya.stage.addChild(Main.gameStart); ...
来源: Laya_社区 发布时间: 20190510
.../ 添加到舞台 let wrap = this.getChildByName('wrap') as Laya.Box; wrap.addChild(videoElement); // 监听点击事件,开始播放视频 let btn_start = this.getChildByName('btn_start') as Laya.Image; btn_start.on(Laya.Event.CLICK,this,()=>{ // 加载资源足以播放 if(videoElement.readySta...
来源: Laya_社区 发布时间: 20200722
...onLoadComplete(){ const scene = new Laya.Scene3D() Laya.stage.addChild(scene) const prefab = Laya.loader.getRes(url) scene.addChild(prefab) } 2020-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20200313
...ileSystemManager is not a function 官方视频教程中飞机大战 "this.addChild is not a function" api readFile success callback function undefined api readFile success callback function undefined 打地鼠发布成微信小游戏后提示gameThirdScriptError this.preinitialize is not a function...
来源: Laya_社区 发布时间: 20171024
....Scene3D = Laya.loader.getRes(this.mSceneName) as Laya.Scene3D; Laya.stage.addChild(scene3D); 异常: TypeError: node._setParent is not a function preload.js:55 at Stage.__proto.addChild (file:///E:/H5Project/TestH5Project/TestFeiChe3D/bin/libs/laya.core.js:13235:9) 2018-10-31 添加评论 免费帖...
来源: Laya_社区 发布时间: 20181031
...使用问题 var p:HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "./HTMLPage1.html"; 代码如上, 报错如附件。 请问, 在使用p:HTMLIframeElement 时, 要加载的.html文件 , 有什么需要注意的地方么? 现在看来,连<...
来源: Laya_社区 发布时间: 20180129