Class AudioClipRecipeImporter
Generates UnityAudioPlayerClipDefinition assets from the audioClips section.
Fully supported: every field maps directly to a public field on the definition.
Implements
Inherited Members
Namespace: Serenity.ProjectRecipe.Infrastructure.Editor.Importers
Assembly: Serenity.UnityProjectRecipe.Infrastructure.Editor.dll
Syntax
public sealed class AudioClipRecipeImporter : RecipeSectionImporterBase, ISerenityRecipeSectionImporter
Constructors
AudioClipRecipeImporter()
Declaration
public AudioClipRecipeImporter()
Properties
Order
Declaration
public override int Order { get; }
Property Value
| Type | Description |
|---|---|
| int | Execution order (ascending). Typed sections run first, the generic |
Overrides
SectionName
Declaration
public override string SectionName { get; }
Property Value
| Type | Description |
|---|---|
| string | The recipe section this importer handles (used for reporting), e.g. |
Overrides
Methods
Import(SerenityRecipeImportContext)
Creates or updates this section's assets. In a dry run the context suppresses writes, so this only resolves and records the would-be outcomes. Not called when the report has blockers.
Declaration
public override void Import(SerenityRecipeImportContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerenityRecipeImportContext | context | The shared import context. |
Overrides
Validate(SerenityRecipeImportContext)
Validates this section against the recipe and project, reporting errors/warnings/info. Must not modify any asset. Called for every run mode.
Declaration
public override void Validate(SerenityRecipeImportContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerenityRecipeImportContext | context | The shared import context. |