Clocks for VRChat Worlds
It's time to add some working clocks to your VRChat worlds!
This package will give you everything you need to add functional clocks (and countdowns) to your VRChat worlds with ease.
Included are many preconfigured analog and digital clocks which will get all your basics set up in less than 10 minutes.
Features:
- Easy to use
- Lots of settings
- Fast and lightweight
- Many prefabs, scripts, and examples to help you get started
Getting Started
Requirements
UdonSharp Unity package (Tested with v0.20.3)
BEFORE adding the VRChat Clocks package, you need to add the VRChat SDK3 and UdonSharp (in that order) packages to your Unity (2018.4.20f1) project. Download links are provided above.
When they have finished importing to your Unity project, you can add the VRChat Clocks package to your project.
You might also have to press "Compile All UdonSharp Programs" under "Utilities" on any Udon Behavior component to force the newly added scripts to load completely.
Examples
Inside the package are plenty of examples for you to look at and play around with.
This includes completely set up prefabs, as well as various different example scripts.
Feel free to dig around in the prefabs and scripts to learn how they work, and learn to make your own!
Analog Clock Settings
- `localPlayerTime`: If the clock should show the player their own local time
- `globalTimezoneOffset`: If clock is not set to local, what timezone offset should the clock have compared to UTC?
- `show24HourClock`: If the clock should show 24 hours. If not, it shows 12
- `continuousHands`: If the clock hands should move smoothly as time progresses
- `onSecondSound`: Which sound to play when a second has passed; optional
- `onHourSound`: Which sound to play when an hour has passed; optional
- `onHourScript`: Which Udon Behaviour should receive an 'OnHour' event when an hour has passed; optional
Digital Clock Settings
- `localPlayerTime`: If the clock should show the player their own local time
- `globalTimezoneOffset`: If clock is not set to local, what timezone offset should the clock have compared to UTC?
- `show24HourClock`: If the clock should show 24 hours. If not, it shows 12
- `showAMPM`: If the clock should show an AM/PM suffix
- `showSeconds`: If the clock should show seconds
- `blinkSeparators`: If the clock separators should blink when a second has passed
- `onSecondSound`: Which sound to play when a second has passed; optional
- `onHourSound`: Which sound to play when an hour has passed; optional
- `onHourScript`: Which Udon Behaviour should receive an 'OnHour' event when an hour has passed; optional
Digital Countdown Settings
- `countdownEndTimestamp`: At what time should the countdown run out? (in Epoch seconds)
- `showDays`: If the clock should show days
- `showSeconds`: If the clock should show seconds
- `blinkSeparators`: If the clock separators should blink when a second has passed
- `continueAfterEnd`: If the clock should continue running after ending
- `onSecondSound`: Which sound to play when a second has passed; optional
- `onEndSound`: Which sound to play when the countdown runs out; optional
- `onEndScript`: Which Udon Behaviour should receive an 'OnEnd' event when the countdown runs out; optional
Support
If you are experiencing any problems or have trouble getting something to work, feel free to reach out to me and I will try to get back to you as soon as possible.
License
This is a paid package, be sure to read the included license terms before you get started!