⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    HudAmmoCounter MonoBehaviour

    Overview

    The HudAmmoCounter behaviour is a simple Unity UI based counter for firearm ammo or item stack counts. It also displays a description of the firearm's ammo type.

    Inspector

    HudAmmoCounter

    Properties

    Name Type Description
    Stacked Group GameObject The group used for wieldable item stacks such as hand grenades.
    Stack Count Text Text The stack count text entry for displaying count and total.
    Firearm Group GameObject The group used for firearms.
    Magazine Text Text The text entry for the current ammo in the firearm magazine.
    Total Text Text The text entry for the total ammo the character is carrying.
    Ammo Type Text Text The text entry for displaying the ammo type.
    Only Include Items Item ID Array A set of IDs this ammo counter should be visible for. If non are specified, then the counter will be visible for all valid.
    Exclude Items Item ID Array A set of IDs the ammo counter should be hidden for.

    See Also

    Modular Firearms

    Unity UI

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX