Hi,
I created a custom FMOD Script to export for Unity a class with a dictionnary, with the event path and the InGame Bus (its an enum)
But i cannot get the current event bus
textFile.writeText(" public class BusByEvent" + "\r\n {\r\n");
var whitespace = "";
var identifierPrefix = "";
var guidType = "";
var guidConstructor = "";
whitespace = " ";
guidType =
"public static readonly Dictionary<string,SoundBus> Data = new Dictionary<string, SoundBus>(){\n";
guidConstructor = "{";
textFile.writeText(whitespace + guidType);
managedObjects.forEach(function (object) {
var bus = "SoundBus.InGame";
//HERE GET THE EVENT BUS
textFile.writeText(
whitespace +
" " +
guidConstructor +
'"' +
object.getPath() +
'"' +
"," +
bus +
"},\r\n"
);
});
textFile.writeText(" };\r\n\r\n");
textFile.writeText(" }\r\n\r\n");
I only need the comment line
Thank you for ur help