1
NGUI 3 Support / complete beginner question - transfer values from ugui to ngui
« on: July 24, 2014, 07:37:39 AM »
Hey everyone! my sorry for asking you guys, but i'm completely lost with ngui :/ my goal is to create a hud for a spaceship game. I have an standard unity text-gui running and would like to know how i can "transfer" the "data" from unity gui to ngui text label. ( For example Ammo and it's value.) here's a code snipped:
any help is welcome
- void OnGUI(){
- GUI.skin = Holographic;
- if(!weaponManager || currentWeapon>weaponManager.WeaponLists.Length)
- return;
- GUI.skin.label.fontSize = 15;
- if(!weaponManager.WeaponLists[currentWeapon].InfinityAmmo){
- GUI.Label(new Rect(10,70,300,50),"Ammo"+weaponManager.WeaponLists[currentWeapon].Ammo+" / "+weaponManager.WeaponLists[currentWeapon].AmmoMax);
- }else{
- }
- GUI.skin.label.fontSize = 15;
- }
any help is welcome
