Home

Awesome

<h2 align="center">🔒 Keypad Prefab made with Udon for VRChat worlds 🔒</h2> <img src="https://raw.githubusercontent.com/KitKat4191/UdonKeypad/main/Resources/PhysicalKeypad.png" alt="VRChat Udon Keypad/Passcode" width="400"/>

<a href='https://discord.gg/7xJdWNk' target="_blank"><img alt='Discord' src='https://img.shields.io/badge/Keypad_Laboratory-100000?style=flat&logo=Discord&logoColor=FFFFFF&labelColor=5662F6&color=272935' width="400"/></a>


This is a drag-and-drop Keypad / Passcode Prefab for VRChat worlds made in Unity 2019.4.29f for SDK3 with Udon. Using this prefab requires no coding from your part and is very easy to setup. Password and target door are both easily configurable. The keypad also has a small API for more advanced users, which can be used alongside custom scripting if more advanced behaviour is desired. The API documentation can be found below.


📥 Download:

Note: If you are working with a legacy project, please migrate the project to the Creator Companion. Download the Keypad .unitypackage from the latest release.


✨ Setup Tutorial

In Unity: Drag the Keypad prefab into your world. The prefab can be found in Assets\Resources\Foorack\Keypad.

Settings

This is the Keypad script located on the Keypad prefab object.

Settings available in the Keypad prefab

Settings Documentation

If you have any problems, please feel free to reach out on Discord! I'm always willing to help with any Keypad-related issues!


🖌️ Customization!

This Keypad supports many customization features. For example translating the Keypad into your own language, by changing the status texts. You can also change the values of the buttons to letters, add more buttons (make a whole keyboard if you want!), change the design, etc. they're just Unity cubes after all. People have made some really pretty keypads over the years! You can see pictures of them in the discord server.


⚙️ API Documentation

This is optional, and only recommended for people who are interested in doing Udon programming.

There are three callbacks which are sent via SendCustomEvent to the UdonBehaviour referenced in the fields Program Closed, Program Denied, and Program Granted. If you wish to listen to all the callbacks on one UdonBehaviour you'll need to link it in all three slots.

You can optionally declare a string variable named keypadCode. This will be set via SetProgramVariable and contains the code that was entered by the user.

UdonBehaviourEvent NameDescription
programGranted"keypadGranted"Runs at correct code
programDenied"keypadDenied"Runs at wrong code
programClosed"keypadClosed"Runs at pressing Clear/CLR

💙 Hope you enjoy it!

Feel free to use this prefab without crediting either me (KitKat) or Foorack (the original creator). But if you do use it, I would love it if you sent a picture of it in use in the discord server! It really gives me motivation to update and improve this prefab, as well as continue making other stuff. Thank you!

<a href='https://discord.gg/7xJdWNk' target="_blank"><img alt='Discord' src='https://img.shields.io/badge/Keypad_Laboratory-100000?style=flat&logo=Discord&logoColor=FFFFFF&labelColor=5662F6&color=272935'/></a>