- Home /
Setting the correct sprite size from Atlas
Hello,
I am new in nGUI.
I have created a widget (UISprite) and I want to change the sprite during the game. My problem is, when I change it, the sprite's size is the same as the sprite's before.
Is it possible to get somehow the size from the atlas or create a new sprite in the scripts.
Thanks
Comment
Answer by Nsmurf · Jul 18, 2012 at 03:37 PM
I don't get exactly what you are asking, but could you write a script to scale the sprite according to some variable?
Thanks for your reply. Yes I did so. I was just wondering how can I get from folders the size of image.