Introduction
In a group chat I’m in a friend of mine suggested that Unity have a oven ding sound effect after lightmaps are finished baking. It was pretty funny to think about so I went ahead and made it do just that.
Downloading
To download it, go to https://samuelarminana.com/games/BakeSoundEffect.unitypackage.
Once its been downloaded, import it into Unity and then it’ll import a folder called Plugins and inside, BakeSoundEffect.
*For the asset to work, effect.mp4 must stay in this path and cannot move. You can replace effect.mp4 with another sound effect if you want as well.
How it works
The asset simply initializes itself once the editor initializes itself which happens after it compiles. It hooks onto the Lightmapping.complete delegate which is called when the light mapper finishes generating a light map. Then I used help I found on this unity forum post to get audio playing in the editor. It took about 10 minutes to make and it was a fun little project.