Hi FOlks.
I have created a game object which I turned into a prefab called LevelBar.
I am following this tutorial from here : Unity 3D Student - 3d Modelling
Now - I have 2 scripts which are to alter the GUITexture.pixelInset.width value , one makes it bigger so the progress bar increases, one makes it smaller so the bar decreases to show progress towards a goal.
I have dragged my prefab onto my Scene, and dragged my prefab also onto my 2 scripts :
1/ http://pastebin.com/9MKk6Ckx
2/ http://pastebin.com/4Yhf0F0V
On top of all of this, my LevelBar pixelInset.width increases - but i never actually get to see the bar on screen, yet when i increase the width manually on the prefab it displays just fine. It looks like my script is now dealing with the instance of the prefab , instead it is dealing with the prefab itself…
Please help!
pastebin is reporting "Unknown Paste ID" for the two links!
– aldonalettoThank you! I have updated the 2 links ;)
– anon58618630Link 1 : http://pastebin.com/9MKk6Ckx Link 2 : http://pastebin.com/4piKUV4E
– anon58618630