Change Sprite Origin in 2D

The origin is the position of the sprite’s that is rotated on, and it’s also an offset for the main position. Usually, the origin is at the center of all objects. However, inside the sprite/object’s behavioral script, I would like to change the origin to the top-left corner, for an example. I would like to do this constantly throughout my game. How would I change the origin of a sprite/object inside the script?

Take a look at this thread. It gives a few different options.

-Larry