⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    NeoFpsInputSystemTouchInventoryButton MonoBehaviour

    Overview

    The NeoFpsInputSystemTouchInventoryButton behaviour is used to define the activation region on the HUD for a button style touch control. This should be placed on the individual slot elements of a HUD inventory popup that is set to persist (not fade out). When tapped, it will signal the player character to switch to the inventory item in the tapped slot.

    This behaviour attaches to NeoFpsInputSystemTouchScreenController behaviour in its parent hierarchy whilst enabled, which is what actually detects the touches and picks which control should handle them.

    Inspector

    NeoFpsInputSystemTouchInventoryButton

    Properties

    Name Type Description
    Priority Integer The priority this control should have in terms of appearing over another. Higher numbers will cover controls with lower priority.
    Consume Boolean Should the touch input be consumed or fall through to the control underneath this.

    See Also

    Input System Extension

    Touchscreen Controls

    Inventory

    The Player HUD

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