- Home /
Get sprite pivot point in world space
I need to get sprite pivot point in world space. SpriteRenderer.sprite,pivot return value in pixels, how to convert them into world space? To hard for me :( Thanks
Any help on this? Have a same issue.
Using 2D frame-by-frame animations, but would need to move a GO in world to match the animation frames. So setting the pivot for each frame is one way to get a place where i could then snap stuff in and let the animations ply themselves.
But if i cant get world coordinates for the pivot, im into a world of pain :)
You probably want to do something else, besides of working with pivot points. You may set animation position translations in world space during tileset animations
https://www.assetstore.unity3d.com/en/?gclid=CN_57_a_-8gCFUXicgodVJYOrg#!/content/10238
this plugin solved the issue for me. could work for you too.
Your answer
Follow this Question
Related Questions
OnPostprocessTexture TextureImporter.spritePivot doesn't seem to work. 1 Answer
Set Texture SpriteMode pivot point via script 0 Answers
temporarily change the pivot, scale, pivot back 1 Answer
How to Rotate Object around point only 90 Degree. 1 Answer
Change Sprite Pivot/Bounds from Script 2 Answers