大约有 37 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0043 秒)
... callback.run(); }); } ... // 外部访问 ... let puzzleSoldier = soldier.getComponent(PuzzleSoldier) as PuzzleSoldier; puzzleSoldier.attack(); ... 2019-02-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 138*...
来源: Laya_社区 发布时间: 20190215
...load("swk/zhujue_wk.skel", Laya.Handler.create(this, () => { this.owner.getComponent(Laya.Spine2DRenderNode).changeNormal(); })); } 2024-10-10 0 1 分享 微博 QZONE 微信 layabox 赞同来自: 已记录,我们节后看一下 2024-09-30 0 0 分享 微博 QZONE 微信 jokerseed 赞同来自...
来源: Laya_社区 发布时间: 20240929
...te3D(pBull, "bull"); let pBullRigidBody = <Laya.Rigidbody3D>pBullObj.getComponent(Laya.Rigidbody3D) pBullRigidBody.isKinematic = true; let pEnemyObj = Util3d.getSprite3D(pEnemy, "man_1"); let pEnemyRigidBody = <Laya.Rigidbody3D>pEnemyObj.getComponent(Laya.Rigidbody3D) pEnemyRigidBody.isK...
来源: Laya_社区 发布时间: 20200720
...(){ this.sprite = this.owner as Laya.Sprite3D; this.animator = this.sprite.getComponent(Laya.Animator) as Laya.Animator; console.log("11"); } public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.tran...
来源: Laya_社区 发布时间: 20191026
...后导航失效问题 let suface = this.owner.getComponent(NavMeshSurface) suface.enabled = false; suface.enabled = true; 附件 : --> 3D寻路导航.zip 2024-10-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20241014
...么处理呢? 1、Script2做成static instance? 2、findeNode(Node2).getComponent(Script2).doSomeThing()? 类似这样吗,Script中有findNode类似的api吗? 2020-03-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20200311
... /**获取动画 */ public getAni(): void { this.ani = this.owner.sprite3d.getComponent(Laya.Animator); let all = 486; let arr = ["3,21,run,true", "29,59,wolk,true", "70,120,cheer,true", "125,380,dance,true", "393,440,forerake,false", "443,485,backward,true"]; let state: Laya.AnimatorState; console....
来源: Laya_社区 发布时间: 20190802
...的breakForce ```typescript onStart() { this.fixedConstraint = this.owner.getComponent(FixedConstraint); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.conn...
来源: Laya2.0_文档 发布时间: 20210715
...的breakForce ```typescript onStart() { this.fixedConstraint = this.owner.getComponent(FixedConstraint); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.conn...
来源: Laya2.0_文档 发布时间: 20210715
...is.character = littleGirl; //獲取動畫組建 this.animator = littleGirl.getComponent(Laya.Animator) as Laya.Animator; this.playIdle(); this.rigidBody = this.character.getComponent(Laya.Rigidbody3D); Laya.timer.frameLoop(1, this, this.onKeyDown); //獲取照相機 var camera: Laya.Camera = littleG...
来源: Laya_社区 发布时间: 20200917