⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    FpsInventoryWieldableSwappable MonoBehaviour

    Overview

    The FpsInventoryWieldableSwappable behaviour is a variant of the FpsInventoryWieldable for the swappable inventory. It has a property for the wieldable category instead of a specific quick slot.

    Inspector

    FpsInventoryWieldableSwappable

    Properties

    The FpsInventoryWieldable behaviour inherits from the FpsInventoryItem. Check the reference for information on its properties.

    Name Type Description
    Inventory ID ID Picker The inventory item key. Clicking this button will open the inventory database item picker.
    Display Image Sprite The image to use in the inventory HUD.
    Max Quantity Int The maximum quantity you can hold.
    Deselect Action Dropdown What to do when the weapon is deselected. Available options are: Disable Game Object, Disable Wieldable Component and Nothing.
    On Select Unity Event An event called when the wieldable is selected. Use this to enable components, etc.
    On Deselect Unity Event An event called when the wieldable is deselected. Use this to disable components, etc.
    Drop Object FpsInventoryWieldableDrop The prefab to spawn when the wieldable item is dropped.
    Category FpsSwappableCategory The wieldable category.

    See Also

    Inventory Examples

    Generated Constants

    FpsInventoryItem

    FpsInventoryWieldableDrop

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