⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    ModularFirearmAttachmentUIHandler MonoBehaviour

    Overview

    The ModularFirearmAttachmentUIHandler behaviour inherits from the AnimatedWeaponInspect behaviour. When the firearm is inspected, an attachment UI popup will be shown, allowing the player to modify the attachments on the gun. A simple example popup called ModularFirearmAttachmentUIPopup is provided with NeoFPS, but you can add your own by extending from its base class.

    Inspector

    ModularFirearmAttachmentUIHandler

    Properties

    Name Type Description
    Popup Prefab Attachment UI Popup The attachments UI popup to show when inspecting the weapon.
    Inspect Key String The name of the bool parameter to set on the weapon's animator while inspecting.
    Release Delay Float How long after releasing the inspect key, should the weapon be able to function again.
    Num Poses Integer How many inspect poses does the weapon have.
    Pose Key String The name of the integer parameter to set on the weapon's animator that controls the animation pose.
    Reset Pose Boolean Should the pose index be reset when inspecting state changes.

    See Also

    Modular Firearms

    Modular Firearm Attachments

    ModularFirearmAttachmentUIPopup

    AnimatedWeaponInspect

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