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

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

21. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 73%]

...s.scene = this.owner.parent;         this.text = this.scene.parent.getChildByName("ceshi");         this.camera = this.scene.getChildByName("camera");     }     onUpdate(){         let touchCount = this.scene.input.touchCount();         if (1 === touchCount){ ...

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

22. 视频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...取场景中要添加视频纹理的3D节点 this.videoPlane = this.scene.getChildByName("Plane") as Laya.Sprite3D; //使用指定路径的视频文件 this.createVideo("resources/mov_bbb.mp4"); } //创建视频纹理并将其应用到Sprite3D上 private createVideo(url: string): void { //设置纹...

来源: Laya3.0_文档 发布时间: 20251010

23. bug,ChainCollider.points第二次设置,会报错! [ 72%]

...rted) { this._started = true; this.enabled = true; } var ground=this.owner.getChildByName("ground");            //****新增代码*****, ground.addComponent(Laya.ChainCollider);                       //****新增代码*****, this._chains=ground.getComponent(Laya.ChainCollider...

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

24. laya预制体实例化后部分节点丢失 [ 71%]

...在,但没渲染出。 unity 粒子特效 laya插件有问题? 使用getChildByName()无法得到子节点对象 Laya["MiniAdpter"].nativefiles 在QQ小游戏中无法读取到 问题状态 最新活动: 2020-11-21 15:22 浏览: 2450 关注: 2 人

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

25. [LayaAir3]3d刚体物体使用transform移动无效 [ 70%]

...以的,更新到3.2.2之后就没法控制了。 let cube = this.owner.getChildByName("Cube")as Laya.Sprite3D; cube.transform.position = new Laya.Vector3(0, 5, 0);------------------------------------------ 有人回复了,只有运动学才能控制了现在···· 附件 : --> Bugtest.zip 2024...

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

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

...报这个错: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

27. 添加或修改物理ChainCollider属性points时,报错 [ 67%]

...rted) { this._started = true; this.enabled = true; } var ground=this.owner.getChildByName("ground"); ground.addComponent(Laya.ChainCollider); this._chains=ground.getComponent(Laya.ChainCollider); } 静观 • 2018-11-29 14:37 报错内容: at Object.box2d.b2Assert (file:///E:/Develop/Lay...

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

28. [LayaNative3]游戏致命bug,WEB 性能是 native 性能 35倍 ,请求紧急修复 [ 65%]

...ndler.create(this, () => {                 var label=this.owner.getChildByName("time") as Laya.Label;                 label.text=((Date.now() - nt) / 1000 + "秒");             })         );  测试环境H5:0.094秒   测试环境native:0.697秒 附件 : --> TestLo...

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

29. [LayaAir3]addComponent(Laya.Rigidbody3D); 报错 [ 65%]

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

30. [LayaAir3]通过对象池创建的物体,发生碰撞后,再通过对象池复用就会出现pos函数找不到的情况 [ 63%]

...题 Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 使用getChildByName()无法得到子节点对象 问题状态 最新活动: 2024-08-13 17:33 浏览: 553 关注: 2 人 炳志要爆发 • 2024-08-13 17:42 果然是这个问题,谢谢解答

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