- Home /
How to set pivot point of Downloaded Image Unity2d?
Hi,
I am a newbie to unity.
I am doing a small demo steps are as follows:
downloading a spritesheet from server
separating each of the sprite
setting their pivot points at runtime
applying animations to particular gameobject
I know the downloading part but i am confused how to set the pivot point.
Anybody have idea or guideline how I could set pivot point at runtime?
Answer by DiegoSLTS · Feb 23, 2015 at 01:34 PM
If you have a Sprite then this should do it: http://docs.unity3d.com/500/Documentation/ScriptReference/Sprite-pivot.html
Your answer
Follow this Question
Related Questions
Is it possible to load Sliced Sprite (with .meta file) from OUTSIDE Packaged Data during runtime? 0 Answers
Change Sprite Pivot/Bounds from Script 2 Answers
Spritesheet bigger than 2048? 0 Answers
Loading and creating Sprites at runtime 0 Answers
OnPostprocessTexture TextureImporter.spritePivot doesn't seem to work. 1 Answer