Overview
The Keypad System is a fully featured, highly customizable keypad and lock actor for Unreal Engine. It ships with three ready-to-use versions — a classic-keypad setup, a multi-actor variant with a unique password per linked actor, and a multi-function variant with a unique password per function.
Everything is built to be dropped into a level and used immediately: procedurally generated, instanced buttons, password censoring, trap codes, customizable sounds and material parameters, plus configurable events for correct and incorrect passwords. It also supports both mouse and numpad input, and integrates easily with your own interaction system.
Feature Summary
- Three Blueprint versions – keypad, multiple actors, and multiple functions.
- Three unlock behaviors – Unlock permanently, require password every time, or unlock temporarily with an auto-lock timer.
- Trap Code – Enter a separate code to fire a hidden event without granting access (optional).
- Password censoring – Mask entered digits with a customizable censor character.
- Attempt limiting – Define a maximum number of wrong attempts before triggering a designated event.
- Custom sounds & materials – Button, granted, denied, and unlock sounds; full color and surface parameter control.
- Widget presets – Ready-made presets for the buttons and password slots.
- Mouse & Numpad input – Works with on-screen clicks and physical keyboard input.
Installation
- Download from Fab – Open the Fab Store, search for Keypad System, and add it to your project.
- Add a keypad to your scene – Drag and drop BP_Keypad into your level (or one of the other two versions if you need multiple actors or functions).
- Set the password – In the Details panel, open the Settings → Password category and set your Password.
- Link an actor – Assign the actor that should be unlocked to Linked Actor.
- Test in game – Interact with the keypad, enter the password, and confirm the unlock behavior is what you expect.
After these steps the keypad is fully functional. Continue reading the Settings section to customize the look, sound, and behavior.
Settings
Default
- Buttons Position – The X, Y, and Z offset of the generated numpad relative to the keypad screen. Use this to line the buttons up with the screen mesh.
- Padding – The horizontal (X) and vertical (Y) spacing between the generated buttons.
General
- Linked Actor – The actor that is unlocked when the correct password is entered. Can be left empty if you only want to use the keypad's events.
- Unlock Behavior – Determines what happens after a correct password. Choose from:
- Unlock Permanently – The actor stays unlocked; no further password is required.
- Require Password Every Time – The actor unlocks, but the keypad immediately relocks and requires the password again on the next interaction.
- Unlock Temporarily, Then Lock Automatically – The actor unlocks for the duration set by Auto Lock Time, then relocks itself.
- Auto Lock Time – How many seconds the keypad stays unlocked when using the temporary unlock behavior. After this time it locks itself automatically.
- Interaction Cooldown – Minimum time (in seconds) between interactions, preventing rapid re-triggers of the keypad widget.
- Switch Color Duration – How long the screen color transition takes when the state changes.
Password
- Password – The correct password for this keypad. Default is 1234.
- Censor Password – When enabled, entered digits are hidden on the screen instead of being displayed.
- Censored Password Character – The character used in place of each hidden digit (for example •).
- Check Password on Last Digit – Check the validity of the password on typing in the last digit
- Max Allowed Attempts – Number of incorrect attempts allowed before the designated "max attempts" event is triggered. Set to -1 for unlimited attempts.
- Reset Attempt Co… – Controls whether the attempt counter is reset, so the player gets a fresh set of attempts.
Trap Code
- Trap Code – A secondary code that is not the correct password. Entering it fires a separate event, which is perfect for hidden triggers, alarms, or scripted events. Default is 0000.
- Enable Trap Code – Turns the trap code on or off.
- Grant Access with Trap – When enabled, entering the trap code also grants access while still firing the trap event. When disabled, the trap code only fires the trap event and does not unlock anything.
Sound Effects
- Button Sound – Played each time a button is pressed (default: Beep).
- Access Granted Sound – Played when the correct password is entered (default: Positive).
- Access Denied Sound – Played when an incorrect password is entered (default: Error).
- Unlock Sound – Played when the linked actor is actually unlocked (default: Unlock).
- Volume Multiplier – Global volume multiplier applied to all keypad sounds.
Material Parameters
These parameters drive the keypad's material instances, so the visuals react to the keypad's state.
Numpad
- Button Color – Base color of the generated numpad buttons.
- Text Color – Color of the button labels.
Screen
- Off Color – Screen color while the keypad is idle/locked.
- Denied Color – Screen color flashed when an incorrect password is entered.
- Granted Color – Screen color flashed when the correct password is entered.
- Screen Metallic – Metallic value of the screen material.
- Screen Specular – Specular value of the screen material.
- Screen Roughness – Roughness value of the screen material.
Multiple Actors & Multiple Functions
The package includes three Blueprint versions. They share the same settings and events, but differ in how passwords are assigned.
| Blueprint | Best for | Password Setup |
|---|---|---|
| BP_Keypad | A single door, container, or function. | One password per keypad, configured in the Details panel. |
| BP_Keypad_MultipleActors | One keypad controlling several linked actors. | A unique password assigned to each linked actor. |
| BP_Keypad_MultipleFunctions | Several functions on one keypad, while still supporting multiple linked actors. | A unique password assigned to each function. |
All three versions support the same unlock behaviors, trap codes, attempt limits, sounds, material parameters, and events. Choose the one that matches how many things you need to protect — you can always swap later, since the settings are consistent across versions.
Widgets & Input
Widget Presets
The keypad UI is built from widget presets for the buttons and the password slots.
Mouse & Numpad Input
The keypad accepts both on-screen mouse clicks and physical numpad/keyboard input.
Notes
- Garbage Collection: When exiting the keypad and removing its widget, the system triggers garbage collection to free up unused references and optimize memory usage. If you have references in your level that you intend to use later, make sure to reload them when needed, or remove the Collect Garbage node from the Remove Widget function.
- Procedural Buttons: Keypad buttons are instanced and generated procedurally to improve performance and optimize resource usage.
- Attempt limits: A value of -1 for Max Allowed Attempts means unlimited attempts. Set a positive number if you want the max-attempts event to fire.
Changelog
- Initial release of the Keypad System.