[求助]cocos creator 添加多个同类型Component

场景:对同一Node添加多个相同类型自定义Component

问题1:
添加多个同类型Component是否有意义,如果无意义编辑器为何不禁止这种行为。

问题2:
实测使用cc.getComponent(‘test’)可以获取第一个名为"test"的Component,多个Component为何不返回一个数组?

1、怎么会没意义了?
2、额,我感觉你自己一个for循环就解决了的。