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

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

1. 角色碰撞器添加复合型碰撞形状,报错Qt[a[((a[(t >> 2)] + 8) >> 2)]] is not a function [ 100%]

...    <<<<<<<<报错: //飞机 let plane = scene.getChildByName("plane") as Laya.MeshSprite3D; let character: Laya.CharacterController = plane.addComponent(Laya.CharacterController);  let collider_shape_box = new Laya.BoxColliderShape(2.5, 0.8, 0.8); collider_shape_box.loc...

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

2. LookAt又出bug了,官方赶紧看看是不是代码合漏了 [ 93%]

...来自: 直接unity里面预览,控制台输入Laya.stage.getChildAt(0).getChildByName("A").transform.lookAt(Laya.stage.getChildAt(0).getChildByName("B").transform.position,new Laya.Vector3(0,1,0),false,false)  指向错误   下面两句修正方向 Laya.stage.getChildAt(0).getChildByName("A")....

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

3. 如何为list内部的button添加事件 [ 90%]

...交 2 个回复 cuixueying 赞同来自: 你可以通过list.getItem(xxx).getChildByName(),通过button的name属性得到button的引用,为button添加点击事件。 2017-01-05 0 3 分享 微博 QZONE 微信 weiyongwill 赞同来自: 这样需要用for语句对每个list元素操作一遍? ...

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

4. parameter 2 is not of type 'WebGLTexture'. [ 86%]

...oElement.load('res/video/mov_bbb.mp4'); // 添加到舞台 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,()=>{ // 加载...

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

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

...报这个错: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; iRows < this.intRows; iRows++) {...

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

6. 报错了没搞懂 [ 80%]

报错了没搞懂 this.getchildByName is not a function 附件 : --> 2017-11-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 ymsdandan 赞同来自: getchildbyname只能通过他的父节点来获取 2017-11-2...

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

7. TypeError: Cannot read property 'length' of null [ 79%]

...建对象没问题,第二次怎么就是获取对象了。。。获取用getchildbyname 这种方式 2020-03-10 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Ame 相关问题 laya2.0加载3d场景报错Uncaught TypeError: Cannot read ...

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

8. [LayaAir3]addComponent(Laya.Rigidbody3D); 报错 [ 79%]

...添加到舞台后     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 '__cl...

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

9. destroy 报错 [ 78%]

... {                 let floor1:Laya.Sprite3D = this.scene.getChildByName("floor"+floor+i) as Laya.Sprite3D;                 if(floor1)                 {                     floor1.destroy();                     c...

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

10. destroy 报错 [ 78%]

... {                 let floor1:Laya.Sprite3D = this.scene.getChildByName("floor"+floor+i) as Laya.Sprite3D;                 if(floor1)                 {                     floor1.destroy();                     c...

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