Search Results for

    Show / Hide Table of Contents

    Class BaseAssetExporter<TAsset, TProfile>

    The base abstract Asset Exporter class.

    Inheritance
    object
    BaseAssetExporter<TAsset, TProfile>
    AssetExporter<TAsset, TProfile>
    DirectoryExporter
    FileExporter
    PrefabExporter
    SceneExporter
    Implements
    IAssetExporter
    Namespace: Evergine.Assets.Exporters
    Assembly: Evergine.Assets.dll
    Syntax
    public abstract class BaseAssetExporter<TAsset, TProfile> : IAssetExporter where TAsset : IAssetMetaFile where TProfile : AssetProfile
    Type Parameters
    Name Description
    TAsset

    The generic asset metafile type.

    TProfile

    The generic profile asset type.

    Properties

    Extension

    Gets the asset export extension.

    Declaration
    public abstract string Extension { get; }
    Property Value
    Type Description
    string

    Methods

    BaseExport(TAsset, TProfile, ExportContext)

    Exports the asset.

    Declaration
    public Task<ExportResult> BaseExport(TAsset asset, TProfile profile, ExportContext exportContext)
    Parameters
    Type Name Description
    TAsset asset

    The asset to export.

    TProfile profile

    The profile.

    ExportContext exportContext

    The export context.

    Returns
    Type Description
    Task<ExportResult>

    The export result.

    ExportOutputFile(TAsset, TProfile, ExportContext)

    Exports the assets.

    Declaration
    protected abstract Task<ExportResult> ExportOutputFile(TAsset asset, TProfile profile, ExportContext exportContext)
    Parameters
    Type Name Description
    TAsset asset

    The asset meta file.

    TProfile profile

    The profile object.

    ExportContext exportContext

    The export context.

    Returns
    Type Description
    Task<ExportResult>

    An awaitable task representing the result of the export process.

    GetExportFilePath(TAsset, TProfile, ExportContext)

    Gets the export file path.

    Declaration
    public abstract string GetExportFilePath(TAsset asset, TProfile profile, ExportContext exportContext)
    Parameters
    Type Name Description
    TAsset asset

    The asset.

    TProfile profile

    The profile.

    ExportContext exportContext

    The export context.

    Returns
    Type Description
    string

    The export file path.

    Implements

    IAssetExporter

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX