⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    KeypadPopup MonoBehaviour

    Overview

    The KeypadPopup behaviour is a UI popup which can be displayed for locked doors and items. Events are fired for correct and incorrect passcodes. If the passcode is known, then it will be displayed alongside the keypad.

    Inspector

    KeypadPopup

    Properties

    Name Type Description
    Starting Selection Selectable The initial UI element to select when the popup is shown.
    Readout Text Text Output text when typing code.
    Missing Characters Dropdown The character to use for missing digits in the code.
    Digit Buttons Button Array The number buttons of the keypad in numberic order (eg 0,1,2,3,4...).
    Starting Digit Integer The lowest numbered button.
    Delete Button Button The delete button is used to delete the last input digit.
    Clear Button Button The clear button clears all typed digits.
    Completion Delay Float The time after the last digit is input before the popup closes.
    Pass Audio AudioClip The audio clip to play if the correct code is input.
    Fail Audio AudioClip The audio clip to play if an incorrect code is input.
    Close On Fail Boolean Should the popup close after the wrong code is input or allow the player to enter another.
    Discovered Text Text If the keycode is known it will be shown here.
    Discovered Object GameObject If the keycode is known then this object will be activated.

    See Also

    Doors

    Sample UI

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