大约有 344 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
...么处理呢? 1、Script2做成static instance? 2、findeNode(Node2).getComponent(Script2).doSomeThing()? 类似这样吗,Script中有findNode类似的api吗? 2020-03-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20200311
...加载都正常代码没有报错,请指教! let pangziAnimator = sp.getComponent(Laya.Animator); Laya.AnimationClip.load("res3d/scene/Assets/FBX/zj_nan_01/boy@animation-idle_show.lani",LayaWrap.creatHandlerCall(this,(aniClip)=>{ //创建动作状态 let state1 = new Laya.AnimatorState(); //...
来源: Laya_社区 发布时间: 20190613
...位置点数据): draw() { const pp = this.owner.getComponent(Laya.PolygonCollider).points; let points = this.pointS_to_pointA(pp) let owner: Laya.Sprite = this.owner as Laya.Sprite const ctx = owner.graphics; ...
来源: Laya_社区 发布时间: 20200428
...在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
...了 示例 里面 居然有 var ani:Laya.Animator = hero.getChildAt(0).getComponent(Laya.Animator);//监听默认动画完成后播放站立动画ani.on(Laya.Event.COMPLETE,this,this.onAniComplete,[ani]); 可是 实际上并没有啊。 没有 on 这个 函数了 . 要用什么代替啊? ...
来源: Laya_社区 发布时间: 20181025
...void Awake () { renderers = transform.GetComponent<Renderer> (); } void Update () { if (renderers) { if (isRenderer != renderers.isVisible) { ...
来源: Laya_社区 发布时间: 20171113
...r cube = sp.getChildAt(0); //获取物理碰撞器 var cubeCollider = cube.getComponent(Laya.PhysicsCollider); })); ```
来源: Laya2.0_文档 发布时间: 20210714
...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
...as Laya.MeshSprite3D; //获取刚体 var cubeRigid:Laya.Rigidbody3D = cube.getComponent(Laya.Rigidbody3D); })); ```
来源: Laya2.0_文档 发布时间: 20210714
...t.addChild(sp); //设置ide中Sprite节点的shape有效 this.Sprite.getComponent(Laya.RigidBody).shapes = [shape]; 附件 : --> LayaProject_(2).zip 2025-09-12 3 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 L...
来源: Laya_社区 发布时间: 20250912