Search Results for

    Show / Hide Table of Contents

    Class AssetMetafile<TProfile, TExporter>

    The asset file class.

    Inheritance
    object
    IdentifiableObject
    AssetMetafile<TProfile, TExporter>
    AssetMetaFileWithDirectory<TProfile, TExporter>
    AssetMetaFileWithSourceAndDirectory<TSource, TProfile, TExporter>
    AssetMetaFileWithSource<TSource, TProfile, TExporter>
    CustomTextureMetaFile
    FrameBufferMetaFile
    MaterialMetaFile
    ParticlesMetaFile
    PostProcessingGraphMetaFile
    RenderLayerMetaFile
    SamplerMetaFile
    Implements
    IAssetMetaFile
    Inherited Members
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    Namespace: Evergine.Assets.Exporters
    Assembly: Evergine.Assets.dll
    Syntax
    public abstract class AssetMetafile<TProfile, TExporter> : IdentifiableObject, IAssetMetaFile where TProfile : AssetProfile where TExporter : IAssetExporter
    Type Parameters
    Name Description
    TProfile

    The profile type.

    TExporter

    The exporter type.

    Constructors

    AssetMetafile(TProfile)

    Initializes a new instance of the AssetMetafile<TProfile, TExporter> class.

    Declaration
    public AssetMetafile(TProfile defaultProfile)
    Parameters
    Type Name Description
    TProfile defaultProfile

    The default profile.

    Properties

    DefaultProfile

    Gets or sets the default profile.

    Declaration
    [EvergineMember]
    public TProfile DefaultProfile { get; protected set; }
    Property Value
    Type Description
    TProfile

    ExportAsRaw

    Gets or sets a value indicating whether this asset will be exported as raw.

    Declaration
    public virtual bool ExportAsRaw { get; set; }
    Property Value
    Type Description
    bool

    Exporter

    Gets or sets the exporter.

    Declaration
    public TExporter Exporter { get; protected set; }
    Property Value
    Type Description
    TExporter

    ExtensionExported

    Gets the extension.

    Declaration
    public string ExtensionExported { get; }
    Property Value
    Type Description
    string

    ExtensionMetafile

    Gets the extension.

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

    Name

    Gets or sets the asset name.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string

    Profiles

    Gets the asset profiles.

    Declaration
    [EvergineMember]
    public IReadOnlyDictionary<string, TProfile> Profiles { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<string, TProfile>

    Methods

    AddProfile(string, TProfile)

    Adds a profile to the asset.

    Declaration
    public void AddProfile(string name, TProfile profile)
    Parameters
    Type Name Description
    string name

    The profile's name.

    TProfile profile

    The profile object.

    Export(ExportContext)

    Exports the meta file.

    Declaration
    public Task<ExportResult> Export(ExportContext exportContext)
    Parameters
    Type Name Description
    ExportContext exportContext

    The export context.

    Returns
    Type Description
    Task<ExportResult>

    An awaitable task for the operation, with the export result.

    GetExportOutputPath(ExportContext)

    Retrieves the export output path.

    Declaration
    public string GetExportOutputPath(ExportContext exportContext)
    Parameters
    Type Name Description
    ExportContext exportContext

    The context for the export.

    Returns
    Type Description
    string

    The export output path.

    GetProfile(string)

    Gets the asset profile object by its name.

    Declaration
    public TProfile GetProfile(string profileName)
    Parameters
    Type Name Description
    string profileName

    The profile name.

    Returns
    Type Description
    TProfile

    The profile object.

    GetProfileOrDefault(string)

    Gets the specified profile from the metafile, or the default profile.

    Declaration
    public TProfile GetProfileOrDefault(string name)
    Parameters
    Type Name Description
    string name

    The profile name.

    Returns
    Type Description
    TProfile

    The specified profile or the default profile.

    RemoveProfile(string)

    Removes a profile from the asset.

    Declaration
    public void RemoveProfile(string name)
    Parameters
    Type Name Description
    string name

    The name of the profile to be removed.

    Implements

    IAssetMetaFile

    Extension Methods

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