⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    ChargeToolAction MonoBehaviour

    Overview

    The ChargeToolAction behaviour is used to add a charge up effect to a wieldable tool. Charging all the way to full will interrupt the tool and send the success = true signal to the end actions. Releasing the trigger early will send the success = false signal.

    Inspector

    ChargeToolAction

    Properties

    Name Type Description
    Charge Duration Float The time it takes to reach full charge.
    Charge Loop AudioClip The audio to play while charging.
    Volume Float The volume of the charging audio loop.
    Start Pitch Float The pitch of the audio loop at the start of the charge.
    End Pitch Float The pitch of the audio loop when charge hits 100%.
    Is Charging Bool String A bool parameter in the tool's animator that should be set while charging.
    Charge Float String A float parameter in the tool's animator used to show charge progress (0-1).

    See Also

    Wieldable Tools

    Unity Animator

    Unity AnimatorController

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