⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    NeoFpsTouchVirtualTrackball MonoBehaviour

    Overview

    The NeoFpsTouchVirtualTrackball 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 NeoFpsTouchScreenController behaviour in its parent hierarchy whilst enabled, which is what actually detects the touches and picks which control should handle them.

    Inspector

    NeoFpsTouchVirtualTrackball

    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.
    Horizontal Axis FpsInputAxis The axis to apply the horizontal touch delta to.
    Vertical Axis FpsInputAxis The axis to apply the vertical touch delta to.
    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

    NeoFPS Input

    Touchscreen Controls

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