⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    WieldableFlashlight MonoBehaviour

    Overview

    The WieldableFlashlight behaviour is used to add a toggleable flashlight to firearms.

    Inspector

    WieldableFlashlight

    Properties

    Name Type Description
    Light Object GameObject A child object with a light component attached.
    Start Enabled Boolean Should the flashlight be on from the start.
    On Toggle On UnityEvent An event fired when the laser is switched on.
    On Toggle Off UnityEvent An event fired when the laser is switched off.

    See Also

    Modular Firearms

    Attachments

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