/// <summary> /// (Cross-Game compatible) /// </summary> /// <param name="skinnedMeshRenderer"></param> /// <returns></returns> public static List <Vector3> GetVertices(this SkinnedMeshRenderer skinnedMeshRenderer) { return(skinnedMeshRenderer.sharedMesh.isReadable ? skinnedMeshRenderer.sharedMesh.vertices.ToList() : skinnedMeshRenderer.BakedMesh().vertices.ToList()); }