大约有 324 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)
MeshCollder 无法跟随父物体缩放 meshSprite3D.getChildAt(0).getComponent(Laya.PhysicsCollider).colliderShape.scale = new Laya.Vector3(3, 1, 3); 2019-05-21 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什...
来源: Laya_社区 发布时间: 20190521
...Children event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf normalizedViewportPointToRay off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once recoverRenderContext3D removeAllLayers remov...
来源: Laya3.0_api 发布时间: 20231115
...碰撞器就获取不到了,一直报空 (this.owner as Laya.Sprite3D).getComponent(Laya.PhysicsCollider) as Laya.PhysicsCollider;log里面也没有这个碰撞组件的信息,只有刚体和脚本的 但是把刚体去掉以后再导出,代码再去获取这个物体身上的碰撞器就...
来源: Laya_社区 发布时间: 20200927
... console.log(this.owner.name) var skin = this.owner.getComponent(Laya.SkinnedMeshRenderer); let mat = skin.material; mat.stencilTest = Laya.RenderState.STENCILTEST_NOTEQUAL; mat.stencilWrite = true; mat.stencilRef = 2; ...
来源: Laya_社区 发布时间: 20231228
...: 与内容相关的链接 提交 1 个回复 bpmf_d 赞同来自: 物体.getComponent(指定的脚本) 2019-05-11 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 在云端-Knight 相关问题 请问有没有方法能够获取“鼠标是...
来源: Laya_社区 发布时间: 20190304
...请: 与内容相关的链接 提交 1 个回复 shawn 赞同来自: 先用getComponent获取组件后, 调用组件的destroy方法 2018-12-01 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 腊笔小新 相关问题 Layabox 2.0 bate5 ...
来源: Laya_社区 发布时间: 20181130
.... 2.但如果将Laya.RigidBody组件直接挂在预制体上,用this.owner.getComponent(Laya.RigidBody)设置后,在调用 this.owner.removeSelf()则不会抛错。 附件 : --> 2020-01-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20200119
...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
3D中局部坐标转世界坐标怎么做额 大神们进来 (this.actor.getComponent(Laya.CharacterController) as Laya.CharacterController).move(this._tempVector3); 如上。 角色控制器的move函数 针对的是世界坐标量。 但是我要让actor向某个方向移动,此时只只知...
来源: Laya_社区 发布时间: 20190918
...在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in laya/components/Component.ts:307 渲染之后执行 Returns void Optional onPreRender onPreRender(): ...
来源: Laya3.0_api 发布时间: 20231115