Now available on the World Wide Web!
A library for Beat Saber that lets other mods define and register for new beatmap event types, and lets beatmap creators use those events in songs. This could be used to create anything from new types of notes to changes to the environment to entirely new gameplay mechanics, as new mods are developed that take advantage of this library’s features.
CustomEvents implements a specification defined by the CustomJSONData library. The current version (referred to as “SimpleCustomEvents” on GitHub) exists to make custom events useable now; future plans exist to develop more advanced features to give modders more control over events and how they receive them, while maintaining backwards compatibility with the current interface.
Features:
CustomEventCallbackController
class draws heavy inspiration from Beat Saber’s internal BeatmapObjectCallbackController
, so the interface should be familiar to plugin developers who have worked with the game’s existing beatmap events.
BeatmapObjectCallbackController
is ready, and one that fires whenever a custom event occurs. These exist to improve usability and reduce the need for costly Unity engine methods such as GameObject.FindObjectOfType
.