摘要: 一直没弄明白,这两者啥关系, 看了一下底层源码,大致知道了些。 一个组件必然会挂到node上。 在脚本组件中通过this.node.getComponent获取组件。creator 提供了this.getComponent 方法 getComponent (typeOrClassName) { re 阅读全文
posted @ 2021-06-30 03:09 Please Call me 小强 阅读(711) 评论(0) 推荐(0) 编辑