Supports GameObjects, Components, UI toggles, Udon events, and network sync with minimal setup.
- Multiple Target Types — Control GameObjects, Components, Sync UI Toggles, and send Udon events
- Auto-Assignment — Use
SimpleToggleMarkercomponents to auto-connect targets by name, never worry about broken references again (finally..) - Network Sync — Three modes: None, Synced and OwnerOnly (advanced use cases)
- VRC Persistence — Optional state persistence using VRChat's PlayerData API
- Trigger Support — Toggle on player trigger enter/exit
https://pesky12.github.io/PeskyBox/index.json
Copy the URL above and add it to your VRChat Creator Companion package listings.
- Download the latest release from the [GitHub releases page]
- Extract the
com.pesky.box.simpleTogglefolder into your Unity project'sAssets/Packagesdirectory - Open Unity and let it compile
- Have a snack!
- Add
SimpleUdonTogglecomponent to a GameObject - Set a unique
Toggle Name(used for auto-assignment) - Configure your targets in the Inspector
- Optionally use
SimpleToggleMarkeron target objects for auto-assignment
| Mode | Description |
|---|---|
| None | Local only, no network sync |
| OwnerOnly | Only the owner can toggle, notifies owner via network event |
| Synced | Full sync with late-joiner support using UdonSynced variable |
// Toggle current state
toggle.Toggle();
// Set specific state
toggle.SetToggle(true);
// Check current state
bool current = toggle.syncedIsOn;- VRChat Worlds SDK 3.5.x (includes UdonSharp)
MIT License — Free to use in any project, commercial or otherwise.
Restriction: Redistribution or resale as a standalone asset package is prohibited. You may include this in your own projects, games, and worlds, but you may not sell or redistribute it as a standalone Unity package or asset store product.
Made with 💜 by Pesky12