- Home /
Set location of Sprite Renderer (2D)?
I have a sprite, and I want to position it so that a part I want is rendered at the object's (0,0) transform, instead of the center of the sprite. For example (green/red represents the object's transform):
Thanks.
Answer by Eric5h5 · Mar 12, 2014 at 09:39 PM
For single mode sprites, change the pivot point in the inspector. For multiple mode sprites (atlases), use the sprite editor to change pivot points.
How can I place a custom pivot point on a multiple mode sprite? It looks like there are only presets, but on single mode there is a custom option.
The same way as single mode; use the custom option. Or just drag it to where you want.
Where can I drag it? In Scene I can't select just the spriteRenderer (it grabs the whole object, and trying to resize the sprite manually resizes the whole GameObject and it's components too), and there's no pivot option in the inspector. In the SpriteEditor I also lack the custom option on multiple mode. Are these options in newer versions of Unity? I'm running 4.3.2f1
Not in the slice menu, in the sprite editor when you've clicked on a sprite. The slice menu just sets up the default pivot location for all the sprites.
Your answer
Follow this Question
Related Questions
Object instantiates on top of the previous object 2 Answers
Is gameObject present at coordinates (x,y,z)? 1 Answer
How do I make mecanim animations respect bone location/position keyframes? 0 Answers
Apply force from specific location in space 0 Answers
How to Position a GUI at the Top-Right of the Screen? 2 Answers