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

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

31. this.bitmap.activeResource is not a function TypeError: this.bitmap.activeResource is not a function [ 80%]

...mage:Laya.Image = new Laya.Image(); image.source = rankTexture; Laya.stage.addChild(image);     附件 : --> 2018-04-03 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 你在报错的地方...

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

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

...g = new BackGround(); //把背景添加到舞台上显示出来 Laya.stage.addChild(this.bg);  })();     })();   //循环滚动的游戏背景 var BackGround = (function(_super){ function BackGround(){ BackGround.super(this); //创建游戏背景1 this.bg1 = new Laya.Sprite(); //加载并显示...

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

33. 求助。资源加载问题,按照官方demo出现问题 [ 79%]

...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

34. ReferenceError: Laya3D is not defined? [ 79%]

..., Laya.Handler.create(null, function(scene:Laya.Scene3D):void { Laya.stage.addChild(scene) as Laya.Scene3D; var camera:Laya.Camera = scene.getChildByName("Main Camera") as Laya.Camera; //camera.addComponent(CameraMoveScript); })); 2019-03-08 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有...

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

35. ReferenceError: Loading_fly is not defined [ 79%]

...2); this.fly.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.diango.addChild(this.fly) this.diango.show(); this.diango.popup(); } _proto.onClose = function () { this.diango.close(); } return Loading_fly; }(Laya.Sprite); 2017-11-08 0 0 分享 微博 QZONE 微信 wudi199553 赞同来自: 根据...

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

36. parameter 2 is not of type 'WebGLTexture' [ 78%]

...s.drawImage(interceptT, 0, 0, btn_edit.width, btn_edit.height); Laya.stage.addChild(img);     如图和代码(一个按钮点击后draw图然后加入stage) 只要添加至stage后,随后就会出现这个错误,跟踪查到传入的不是WebGLTexture而是一个canvas,应该是渲染出...

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

37. laya加载unity插件导出的场景 physics3D is not a function [ 78%]

...ndler.create(this,function(s:Laya.Scene3D):void{ var scene = s; Laya.stage.addChild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //加载到场景 scene.addChild(camera); //移动摄像机位置 camera.transform.position=new Laya.Vect...

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

38. 向stage下的scene里添加物体时报错 [ 78%]

...10 0 0 分享 微博 QZONE 微信 时光123 赞同来自: 使用Laya.stage.addchild. 或。this.owner.addChild 一样的错 2022-08-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 时光123 相关问题 缓动...

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

39. parameter 2 is not of type 'WebGLTexture'. [ 78%]

.../ 添加到舞台 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

40. HTMLCanvas Laya.stage.addChild(HTMLCanvas); 挂载到舞台报错 [ 76%]

HTMLCanvas Laya.stage.addChild(HTMLCanvas); 挂载到舞台报错 想要加入百度图表 使用Html Canvas的代理类后 加入舞台时报错   示例代码:   var div=Laya.HTMLCanvas.create=new HTMLCanvas("2D");      div.size(600,400);      Laya.stage.addChild(div);      consol...

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