大约有 225 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
... } onStart():void{ this.lab=this.owner as Laya.Label; } onUpdate():void{ if(this.lab==null){ console.log("lab为空"); return; } t...
来源: Laya_社区 发布时间: 20200602
...到的物体 this.text.text = "点击到了" + this.outHitResult.collider.owner.name ; console.log("碰撞到物体!!") } 上述代码运行时候报错,一直无法解决,请求大佬帮忙看一下问题?(.scene.physicsSimulation属性为灰色,不可使用) 报错如下...
来源: Laya_社区 发布时间: 20190523
...or3(0,0,0); } onStart(){ this.scene = this.owner.parent; this.text = this.scene.parent.getChildByName("ceshi"); this.camera = this.scene.getChildByName("camera"); } onUpdate(){ let touchCount = this.scene...
来源: Laya_社区 发布时间: 20190531
...this.skeleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton); this.skeleton.pos( this.pageWidth / 2, this.pageHeight / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); }); } private play(): void {...
来源: Laya_社区 发布时间: 20230703
...ya.Physics.rayCast(this.ray,this.outHitInfo,5)); //更新角色位置 this.owner.transform.translate(new Laya.Vector3(speedX,0,speedZ),false); //播放行走动画 2018-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...
来源: Laya_社区 发布时间: 20180118
...了Scene3d scene3d.name = 'good'; self.owner.addChild(scene3d); var lv = scene3d.getChildByName("--- GAMEPLAY ---").getChildByName("Levels Parent"); // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.c...
来源: Laya_社区 发布时间: 20220506
...his.enableRightClick(); //禁用Ctrl+c,Ctrl+v this.owner.on("keydown", this, (event: KeyboardEvent) => { if (event.ctrlKey && event.key === "c") { event.preventDefault(); } if (event.ctrl...
来源: Laya_社区 发布时间: 20251115
...: 参考下https://ldc.layabox.com/doc/?nav=zh-ts-2-4-2这篇文档中的owner方法 2018-03-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 radyslove 相关问题 发起问题须知,必看!!!不按提问规则的,官方拒...
来源: Laya_社区 发布时间: 20180305
...eHandler = new Laya.Handler(this, this.onChangeColor, [colorPicker]); this.owner.addChild(colorPicker); this.onChangeColor(colorPicker); } private onChangeColor(colorPicker: Laya.ColorPicker, e: any = null): void { console.log(colorPicker.selectedColor); } } 运行效果如下动图所示: (动...
来源: Laya3.0_文档 发布时间: 20251010
...ture.x = 300; this.mArmature.y = 350; this.mArmature.scale(0.5, 0.5); this.owner.addChild(this.mArmature); //设置动画播放完成后,调用completeHandler继续播放下一个动画 this.mArmature.on(Laya.Event.STOPPED, this, this.completeHandler); this.play(); }); } private completeHandler():...
来源: Laya3.0_文档 发布时间: 20251010