求助:关于碰撞函数如何读取自定义属性

比如我在脚本test.js中 自定义properties: { quality: 0, } 两个碰撞组件的quality不相同。
在碰撞函数onCollisionEnter: function (other, self)里如何获取两个quality的值?

已解决
other.getComponent(“test”).quality
self.getComponent(“test”).quality