Class CreateSoundMixerEffectLoopDefinitionOutput
Editor-only result of a definition-asset creation attempt. Like the mixer creator, the factory
never throws to the UI: failures are returned here with Success = false and a clear
ErrorMessage.
Inheritance
CreateSoundMixerEffectLoopDefinitionOutput
Assembly: Serenity.UnitySoundMixer.Infrastructure.Editor.dll
Syntax
public class CreateSoundMixerEffectLoopDefinitionOutput
Fields
AssetPath
Project-relative path of the created asset (null on failure).
Declaration
public readonly string AssetPath
Field Value
Definition
The created definition asset (null on failure).
Declaration
public readonly UnitySoundMixerEffectLoopDefinition Definition
Field Value
ErrorMessage
Human-readable failure reason when Success is false; null otherwise.
Declaration
public readonly string ErrorMessage
Field Value
Success
True when the definition asset was created and saved.
Declaration
public readonly bool Success
Field Value
Warnings
Non-fatal warnings worth surfacing (e.g. asset filename was auto-suffixed).
Declaration
public readonly IReadOnlyList<string> Warnings
Field Value
Methods
Fail(string)
Builds a failed result carrying a clear, user-facing message.
Declaration
public static CreateSoundMixerEffectLoopDefinitionOutput Fail(string errorMessage)
Parameters
| Type |
Name |
Description |
| string |
errorMessage |
|
Returns
Ok(string, UnitySoundMixerEffectLoopDefinition, IReadOnlyList<string>)
Builds a successful result.
Declaration
public static CreateSoundMixerEffectLoopDefinitionOutput Ok(string assetPath, UnitySoundMixerEffectLoopDefinition definition, IReadOnlyList<string> warnings)
Parameters
Returns