AudioBusUtility ​
Inherits: RefCounted
The audio buses the toolkit plays on (music, sound effects, voices, ambience, UI) and a way to make sure they exist.
Description ​
The buses of a project live in its bus layout file. A project that has never had them (a new project the addon was just added to) would stop at the first volume setting, so the game makes sure they exist when it starts and the editor setup saves them into the layout.
Methods ​
int | ensure_buses() static |
String | get_layout_path() static |
bool | save_layout() static |
Constants ​
Array[String]REQUIRED_BUSES =["Music", "SFX", "Voice", "Ambience", "UI"]- The audio buses the toolkit plays on.
Method descriptions ​
int ensure_buses() ​
Creates the buses that are missing (routed to Master). Returns how many were created
String get_layout_path() ​
Where the project keeps its bus layout (the project setting, or Godot's default file name)
bool save_layout() ​
Writes the buses that exist now into the project's bus layout and points the project at that file (editor only: the layout is a project file)