⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    HudCrosshair MonoBehaviour

    Overview

    The HudCrosshair behaviour displays a Unity UI based crosshair when an appropriate wieldable is selected, expanding based on accuracy.

    Inspector

    HudCrosshair

    Properties

    Name Type Description
    Crosshair Rect RectTransform The parent rect transform of the crosshairs (will be expanded and contracted based on accuracy).
    Minimum Size Float The size the UI element will reach at 100% accuracy.
    Maximum Size Float The size the UI element will reach at 0% accuracy.
    Default Crosshair FpsCrosshair The crosshair to show by default.
    Crosshairs RectTransform Array The individual crosshairs to match the FpsCrosshair generated constants values.

    See Also

    Modular Firearms

    Unity UI

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