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

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

3571. Dialog.show 的 showEffect参数在微信真机上的问题 [ 50%]

...如下: Laya.loader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但是在手机上就看不到UI。 后来...

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

3572. Sprite graphics的显示比例问题 [ 50%]

...ya.Sprite(); character.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(0, 0, 200, 200, "#ff0000", 1); character.graphics.drawCircle(100, 100, 100, null, "#ff0000", ...

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

3573. 安卓app加载场景错误 [ 50%]

...756: TypeError: Cannot read property 'createTexture' of null var glTexture=this._source=gl.createTexture(); ^ TypeError: Cannot read property 'createTexture' of null at Texture2D.__proto._createWebGlTexture (http://192.167.0.100/h5/layawe ... 756:32) at Texture2D.__proto.recreateResource (http://192...

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

3574. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 50%]

...script //加载模型 Sprite3D.load("Conventional/shoot.lh",Handler.create(this,function(sp:Sprite3D):void{ var cube:MeshSprite3D = sp.getChildAt(0) as MeshSprite3D; //获取物理碰撞器 var cubeCollider:PhysicsCollider = cube.getComponent(PhysicsCollider); })); ```

来源: Laya2.0_文档 发布时间: 20210714

3575. Cannot connect to runtime process, timeout after 10000 ms [ 50%]

...nect to runtime process, timeout after 10000 ms - (reason: Can't attach to this target that may have Chrome DevTools attached - file:///E:/xxxxxxx/bin/index.html). 因为 我再layaari 模拟器 下面 调试了 F12后 模拟器 就会和代码断开!我重新运行 会打开多个模拟器 导致...

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

3576. 代码和ide编辑器添加遮罩浏览器警告 [ 50%]

...onsole.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是0,0,只要设置了mask,chrorme就会警告cache bitmap size larger than 2048,cache ignored 2018-08-28 添加...

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

3577. 内嵌模式创建scene,运行时报找不到json文件 [ 50%]

...}; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(HelloUI.uiView); } } REG("ui.HelloUI",HelloUI); } 附件 : --> TestDemo.zip 2019-06-25 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0...

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

3578. [LayaAir3]addComponent(Laya.Rigidbody3D); 报错 [ 50%]

...节点被添加到舞台后     onEnable(): void {         let a = this.owner.getChildByName("Sprite3D") as Laya.Sprite3D;         console.log(a,typeof(a))         let aa = a.addComponent(Laya.Rigidbody3D);     }   报错 TypeError: Cannot read properties of undefined (reading &...

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

3579. native上文本有多余线 [ 50%]

...          Laya.stage.setGlobalRepaint();             this.destroy();         }                  public static function getTextTexture(w:int, h:int):TextTexture {             return new TextTexture(w, h);         } 2020-11-23 0...

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

3580. layabox2.0 调用tiledmap提示undefined是为什么,是2.0以后就不支持了吗? [ 50%]

...用tiledmap提示undefined是为什么,是2.0以后就不支持了吗? this.tMap =new laya.map.TiledMap; 执行后直接报下面的错误。 TypeError: Cannot read property 'TiledMap' of undefined 2018-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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