⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    HolographicSightSRP MonoBehaviour

    Overview

    The HolographicSightSRP behaviour is a modified version of the HolographicSight that works with the new URP and HDRP shaders. These don't use stencils like the built-in pipeline version, but project the reticule as part of the glass itself.

    Inspector

    HolographicSightSRP

    Properties

    Name Type Description
    Renderer Renderer The renderer with the holographic sight or red dot sight material (from the shader graph) attached.
    Material Index Integer The index of the material with the holographic sight or red dot sight shader.
    Reticule Color Color The base colour of the reticule.
    Reticule Position Transform A proxy transform that specifies where the reticule will appear in the object's space.
    Reticule Distance Float A forwards (Z axis in the object's local space) offset for the reticule to project it in front of the sight.
    Reticule Size Float The size of the reticule.
    Brightness Settings Float Array A series of brightness values that can be cycled through with the Optics Brightness +/- inputs.
    Brightness Setting int The index of the starting brightness setting from the above array.

    See Also

    Modular Firearms

    Scopes & Optics

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