Pick Up Weapons

OK so I am trying to make a pick up script I have a weapon switch script done :smiley: so now I am trying the pickup and I cant seem to get it to work I want it so that when u go over the weapon on the floor a picture of the gun shows this is how I am trying to do it

Weapon Pickup

Weapon Switch

I also would like to know how can I make it so tht the picture shows at the botton in the middle on every single resolution.]

THANKS!

-Kevin

So you need to using Screen.height and Screen.width to align your image in your OnGUI.

Something like:

   GUI.DrawTexture(Rect((Screen.width - 100)/2, (Screen.height-30), 100, 20);