最近搜索

拿到节点的方法 拿到组件的方法

浏览:353
管理员 2021-11-05 07:49


            const gasNode = this.node.getChildByName("gas");
            
            this._gas = gasNode.getComponent(ParticleSystemComponent); 这是汽车上面的粒子系统。


image.png







联系站长

站长微信:xiaomao0055

站长QQ:14496453