获取纹理顶点数组

大家有没有获取纹理 顶点数组的方法啊??
类似于polygonCollider组件中的 Regenerate Points的功能。能够在代码中使用实时获取texture的顶点数组