⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    NeoFpsInputSystemTouchVirtualAnalog MonoBehaviour

    Overview

    The NeoFpsInputSystemTouchVirtualAnalog behaviour is used to define the activation region on the HUD for a virtual analog stick which emulates the sticks on a gamepad. 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

    NeoFpsInputSystemTouchVirtualAnalog

    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.
    Input Curve AnimationCuve A falloff curve for the input strength. The horizontal axis is the normalised distance of the touch from the center of the control. The vertical axis is the output strength.
    Touch Marker Transform RectTransform A visual marker for the analog position that appears while touch is held.
    Max Marker Distance Float The distance the marker should move from the center of the analog control when at full strength.
    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