Search Results for

    Show / Hide Table of Contents

    Interface IAssetImporter

    This interface represents an asset importer.

    Namespace: Evergine.Framework.Assets.Importers
    Assembly: Evergine.Framework.dll
    Syntax
    public interface IAssetImporter

    Properties

    Extensions

    Gets the extensions.

    Declaration
    string[] Extensions { get; }
    Property Value
    Type Description
    string[]

    Methods

    GenerateAdditionalAssets(Stream, IAssetSource)

    Indicates if this asset require additional assets.

    Declaration
    bool GenerateAdditionalAssets(Stream stream, IAssetSource resource)
    Parameters
    Type Name Description
    Stream stream

    The asset stream.

    IAssetSource resource

    The asset resource.

    Returns
    Type Description
    bool

    True if this asset needs additional assets.

    ImportData(Stream, IAssetSource)

    Import this asset data.

    Declaration
    void ImportData(Stream stream, IAssetSource resource)
    Parameters
    Type Name Description
    Stream stream

    The stream.

    IAssetSource resource

    The asset source.

    ImportSource(Stream, bool, bool)

    Gets the asset source.

    Declaration
    IAssetSource ImportSource(Stream stream, bool preprocess, bool rawAsset)
    Parameters
    Type Name Description
    Stream stream

    The asset stream.

    bool preprocess

    Indicates if the assets need to be preprocessed.

    bool rawAsset

    The asset is loaded as raw asset.

    Returns
    Type Description
    IAssetSource

    The asset importer.

    Extension Methods

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