One very important aspect of game development is utilizing the best tools for the job. When using a robust game engine like Unity, sometimes it’s easy to think you have everything you need, and forget to plan ahead for those time-consuming tasks down the line.
But then again, while we’d all love to have the time to create our very own personalized engines tailored precisely for our game designs, you’d be killing yourself to “reinvent the wheel”. It is more prudent to ask which parts of a game’s development will benefit most from special tools.
The answer to that question for Newborn Bard has been:
1. Scripting audio and music events.
As my first exercise in extending the Unity editor, I created a custom editor class for our “Jukebox Trigger”— an all-purpose trigger which can 1) Fade to a new track; 2) Trigger a 3D audio source; 3) Trigger a new oneshot clip; 4) Fade out all music. Each of these have a set of parameters such as FadeTime, Volume, AudioClip, and Delay.