Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/molotovcherry/vrchat_keypad
A keypad built in Udon (UdonSharp)
https://github.com/molotovcherry/vrchat_keypad
csharp keypad passcode password sdk3 u-sharp udon udonsharp vrchat world
Last synced: 3 months ago
JSON representation
A keypad built in Udon (UdonSharp)
- Host: GitHub
- URL: https://github.com/molotovcherry/vrchat_keypad
- Owner: MolotovCherry
- Created: 2020-05-29T04:23:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-25T15:53:29.000Z (almost 4 years ago)
- Last Synced: 2023-03-03T17:07:10.304Z (almost 2 years ago)
- Topics: csharp, keypad, passcode, password, sdk3, u-sharp, udon, udonsharp, vrchat, world
- Language: C#
- Homepage:
- Size: 386 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VRChat Udon Keypad
An advanced Udon keypad that can be used to create special passcodes on your world. Implemented using UdonSharp
## Features- Two keypad versions: One using objects, the other using canvas UI with buttons
- Support for multiple passcodes
- Can enable or disable gameobjects per passcode (advanced; see documentation and `doorObjects` and`grantedSetActive` settings)
- Udon program callbacks: Enabling or disabling objects upon accepted code not advanced enough? You can enter your very own Udon program as a callback, and it also sends the used code, so you can program WHATEVER you want for a particular code!## Requirements
Udon Sharp - Make sure you install it before importing this project
[https://github.com/Merlin-san/UdonSharp](https://github.com/Merlin-san/UdonSharp)## Documentation
- **Passcodes option:** Add as many passcodes as you want! There's no limit
- **DoorObjects:** This allows you to enable or disable an object automatically when a passcode is granted, denied, or on logoff. Arrays are synced, meaning, the first passcode in the passcodes array corresponds to the first object in the doorobjects array.
- **Programs**
| Program | CustomEvent | ProgramVariableName(type) | Runs on |
|----------------|---------------|---------------------------|------------------------------|
| programGranted | keypadGranted | code(string) | successful code |
| programDenied | keypadDenied | code(string) | denied code |
| programClosed | keypadClosed | | pressing clear/CLS |- **Granted set active objects:** An array of booleans which says whether to enable or disable a particular object relating to the doorobjects array upon successful activation of a code. It is synced to the array again. E.g. array element 2 corresponds to array element 2 of doorobjects.
- **Change active states on fail:** If a passcode is denied, it will change the active states of all doorObjects to the OPPOSITE of the granted set active objects booleans. (Basically, it reverses the active state). Note: This will change the active state of all objects in the array (basically resetting them all to default).
- **Change active states on logout:** When you press the CLS button, it will change the active states of all doorObjects to the OPPOSITE of the granted set active objects booleans. (Basically, it reverses the active state). Note: This will change the active state of all objects in the array (basically resetting them all to default)
### Credits
Foorack for the original version (originally implemented using UdonGraph)**NOTE: Foorack is NOT the author of this project on this page. If you have an issue, contact and report a bug on THIS project, not HIS.**
[Github Repo](https://github.com/Foorack/UdonKeypad)
[https://blog.foorack.com/keypad-prefab-in-udon-for-vrchat/](https://blog.foorack.com/keypad-prefab-in-udon-for-vrchat/)