So I am adding deformation to my sprite and I am updating the meshes like this every frame:
sprite.OverrideGeometry(deformedVerts, triangles);
But I am getting this error:
"Invalid vertex array. Some vertices are outside of the Sprite rectangle: "
The sprite.rect is read-only so I was wondering how I can make the sprite rect bigger to adjust to the new vertices.
Thanks in advance!