大约有 34 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0031 秒)
...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
...取场景中要添加视频纹理的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
...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
...在,但没渲染出。 unity 粒子特效 laya插件有问题? 使用getChildByName()无法得到子节点对象 Laya["MiniAdpter"].nativefiles 在QQ小游戏中无法读取到 问题状态 最新活动: 2020-11-21 15:22 浏览: 2450 关注: 2 人
来源: Laya_社区 发布时间: 20201118
...以的,更新到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
...报这个错: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
...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
...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
...添加到舞台后 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 &apos;__cl...
来源: Laya_社区 发布时间: 20240102
...题 Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 使用getChildByName()无法得到子节点对象 问题状态 最新活动: 2024-08-13 17:33 浏览: 553 关注: 2 人 炳志要爆发 • 2024-08-13 17:42 果然是这个问题,谢谢解答
来源: Laya_社区 发布时间: 20240813