Hi there,
I am looking to scale many UI elements like Health bar, mana, energy and experience. I've acheived this reletively easy before with Unity's GUI system, however I am a little lost doing it with NGUI.
Originally I done it like:
GUI
.Box(new Rect
(100 ,Screen
.height - 100,PercentageCalculator
(PlayerExp,ExpToLevel
)* Screen
.width / 150,
25),
"EXP");
public float PercentageCalculator(float x, float y) {
return(x / y * 100);
}
However I can't controll the scale with of the UISprite using this method.
Any ideas would be appreciated!
Thanks