⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    NeoFpsInputSystemTouchButton MonoBehaviour

    Overview

    The NeoFpsInputSystemTouchButton behaviour is used to define the activation region on the HUD for a button style touch control, along with its response when tapped or held. 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

    NeoFpsInputSystemTouchButton

    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.
    Action ID Dropdown The input action the control should affect. The dropdown will list all the available actions.
    On Touch Started UnityEvent An event fired when the player first touches this control.
    On Touch Ended UnityEvent An event fired when a touch that started on this control is released.

    See Also

    Input System Extension

    Touchscreen Controls

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