Supports GameObjects, Components, UI toggles, Udon events, and network sync with minimal setup.
SimpleToggleMarker components to auto-connect targets by name, never worry about broken references again (finally..)https://pesky12.github.io/PeskyBox/index.json
Copy the URL above and add it to your VRChat Creator Companion package listings.
com.pesky.box.simpleToggle folder into your Unity project’s Assets/Packages directorySimpleUdonToggle component to a GameObjectToggle Name (used for auto-assignment)SimpleToggleMarker on 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;
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
com.pesky.box.simpletoggle
https://github.com/pesky12/com.pesky.box.simpletoggle#readme
1.0.1 (Changelog)
2022.3 or later
No dependencies
No legacy packages
pesky12