Moving pivot point For a 2d sprite

The title says it all, how would I move the position of my pivot point in my 2d Sprite?
Thanks!

3 Answers

3

Change the pivot in the import settings. If you want a visual editor, change the mode from single to multiple and use the sprite editor.

Would it be possible to set a custom pivot? In the sprite editor, I can only set it to pre-defined positions.

You can change the pivot to whatever you want using the sprite editor; just drag it to wherever.

I made a tool for setting the Sprite pivot points in the editor while maintaining their world positions: GitHub - thepowerprocess/UnitySpritePivotEditor: Easily edits a 2D Sprite while maintaining its position

alt text

yes do
Sprite.Create(texture,rect,vector2()==pivot);