This is a super simple script you can throw onto any mesh in unity. you have to check the boolean if the mesh has a skinned mesh renderer or a mesh filter.