【请教】脚本中如何定义一个可以在编辑器中显示可编辑的属性

如何在脚本中定一个像按钮一样的,可以选择节点、脚本、方法的属性?
就像这样:
image

@property({ type: cc.Component.EventHandler })
clickEvents: cc.Component.EventHandler[] = [];
1赞

:+1::+1:赞,有用的哈哈