⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    NeoFpsInputSystemTouchVirtualTrackball MonoBehaviour

    Overview

    The NeoFpsInputSystemTouchVirtualTrackball behaviour is used to define the activation region on the HUD for a virtual trackball / trackpad style input that you can use to emulate mouse input. 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

    NeoFpsInputSystemTouchVirtualTrackball

    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.
    Multiplier Float A multiplier applied to the touch delta.
    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