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

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

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

...点添加新创建的图片,会报这个错: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

2. 加载3D场景报错:TypeError: bt.btBvhTriangleMeshShape create is not a function [ 98%]

加载3D场景报错:TypeError: bt.btBvhTriangleMeshShape create is not a function 使用编辑器2.13.1或2.13.2创建官方的3d demo项目,并在进入的场景中增加一个碰撞体,使用官方的测试app进入时,就无法进入了。并且界面上和控制台都有报错。 alert=...

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

3. js飞机大战报错 请大神看看 [ 94%]

...l=null;          this.infoLabel=null; GameInfo.js: var GameInfo = (function (_super) {     function GameInfo() {         GameInfo.super(this);         // this.infoLabel.text = "abc"; 这个也报异常应该是找不到infoLabel         // 注册按钮点击事件 点击后暂...

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

4. 官方文档里的位图字体的制作与使用JS 跑不通 以及 文档的几个问题 [ 92%]

...Font.loadFont("res/bitmapFont/test.fnt",new Laya.Handler(this,onLoaded)); function onLoaded(){init();}function init(){//如果位图字体中,没放空格,最好设置一个空格宽度this.mBitmapFont.setSpaceWidth(10);Laya.Text.registerBitmapFont(this.mFontName,this.mBitmapFont);var txt = new...

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

5. layaAir 打包成apk后在真机上运行 使用粒子时报错 [ 92%]

...研发商            TypeError: this._emitter.advanceTime is not a function            http://192.168.1.240:8900/bin/ ... :831: TypeError: this._emitter.advanceTime is not a function                        this._emitter && this._emitter.advanceTime(t)           ...

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

6. 3D文本纹理demo问题 [ 91%]

...维码真机调试也是如此。  TypeError: this.cxt.fillText is not a function             this.cxt.fillText(text, this.cav.width / 2, this.cav.height);                      ^^                                                    TypeError: this.cxt.fillT...

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

7. 2.2.0 Html使用img标签解析错误 [ 90%]

...用img标签解析错误 TypeError: Illegal constructor preload.js:55 at Function.getInstance (file:///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.core.js:11687:24)   at Function.getInstance (file:///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.html.js:1213:39)   at Function._parseXML (file:///D:/LayaTest/...

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

8. 【求助】关于Cannot read property 'visible' of undefined问题 [ 90%]

...operty 'visible' of undefined问题 我的代码是这样子的: private function showFoods():void{ foodSprite = new Sprite(); Laya.stage.addChild(foodSprite); this.index = 0; foodsList = new Array(); foodsList.push(new Food("菜品1", "1", 0)); foodsList.push(new Food("菜品2", "2", 1)); foodsLi...

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

9. 有人遇到GetType 的问题吗? laya2.0 [ 89%]

...rototype.UnBufferMove找到   box2d.b2BroadPhase.prototype.UnBufferMove = function(a) { a = this.m_moveBuffer.indexOf(a); this.m_moveBuffer[a] = null } ;  替换为:   box2d.b2BroadPhase.prototype.UnBufferMove = function(a) { let ba=0; while(true){ ba = this.m_moveBuffer.indexOf(a,ba); if(ba&lt...

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

10. 照着官方文档写的 Dialog 报错? [ 89%]

照着官方文档写的 Dialog 报错? var LoadResource = function () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, ...

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