用 @requireComponent 装饰器添加多个组件依赖时例如@requireComponent([CircleCollider2D,RigidBody2D,BoxCollider2D] )
会报错[Scene] Right-hand side of ‘instanceof’ is not callable ;
但分别用三个@requireComponent来添加,只能添加@CCClass下第一个依赖
想问一下正确的添加多个依赖组件的方法
-
Creator 版本: <3.8.6>
-
重现方式:用 @requireComponent 装饰器添加多个组件依赖时: @requireComponent([CircleCollider2D,RigidBody2D,BoxCollider2D])
-
首个报错: < [Scene] Right-hand side of ‘instanceof’ is not callable >
-
编辑器操作系统:
-
重现概率: <100%>