Skip to content

Player.WeaponGUI

Wesley Haws edited this page Apr 22, 2017 · 2 revisions

Weapon GUI Setup


In your GUI Object add an empty Child gameobject that will display all of your weapon GUI elements using the new Unity 5 UI system. When done it should look similar to this:

Hierarchy

All of these except "Divider" Should be tagged with something unique so that weapon system will be able to find it. Note:GameObject naming isn't important here.

  • BulletImage - UIImage element that contains your bullet image
  • ClipImage - UIImage element that contains your clip image
  • Clips - UIText element that will display how many clips are left in your weapon
  • Divider - Optional Element
  • BulletsLeft - How many bullets are left in this clip.
Clone this wiki locally