Class AudioChannelCreator
Creates a Serenity audio channel — a UnityAudioPlayerSettings asset routed to a mixer
group — from validated input, with a single-asset rollback on failure. Kept separate from the window
so the creation/validation can be unit tested in a temp folder.
Inheritance
AudioChannelCreator
Assembly: Serenity.UnitySoundMixer.Infrastructure.Editor.dll
Syntax
public static class AudioChannelCreator
Methods
Create(string, string, AudioPlayerType, uint, AudioMixerGroup)
Creates a channel settings asset named after id in folderPath,
routed to group. A name clash is resolved with a unique suffix so nothing is
overwritten.
Declaration
public static AudioChannelCreator.Result Create(string folderPath, string id, AudioPlayerType type, uint channels, AudioMixerGroup group)
Parameters
Returns
Validate(string, string)
Validates the channel parameters (id format, folder). Returns null when valid.
Declaration
public static string Validate(string folderPath, string id)
Parameters
Returns