⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    HudAdvancedCrosshairStyleStandard MonoBehaviour

    Overview

    The HudAdvancedCrosshairStyleStandard behaviour represents a specific crosshair style for the HudAdvancedCrosshair behaviour. It handles animating the hit marker and changing its size based on accuracy. You can also write your own crosshair styles for more complex effects if desired.

    Inspector

    HudAdvancedCrosshairStyleStandard

    Properties

    Name Type Description
    Crosshair Rect RectTransform The parent rect transform of the crosshairs (will be expanded and contracted based on accuracy).
    Max Accuracy Size Float The size the UI element will reach at 100% accuracy.
    Min Accuracy Size Float The size the UI element will reach at 0% accuracy.
    m_OnlyShowCriticals Boolean Should the hit marker only show critical hits, or any hit that dealt damage.
    m_CritColour Color The colour of the hit markers if for critical hits. Non-critical will use the crosshair colour.
    m_HitmarkerDuration Float The amount of time the hit marker will be visible.
    m_Animation Dropdown The animation easing function of the hit marker size. Available options are: Lerp, EaseIn, EaseOut, EaseInOut, Spring and Bounce.
    m_HitMarkerRect RectTransform The parent rect transform of the hit marker.
    m_HitStartSize Float The starting size of the hit marker.
    m_HitEndSize Float The size of the hit marker just before it vanishes.

    See Also

    HudAdvancedCrosshair

    Unity UI

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