Class AssetImportManager
Assets import manager class.
Inherited Members
Namespace: Evergine.Framework.Assets
Assembly: Evergine.Framework.dll
Syntax
public class AssetImportManager
Fields
ExportExtensionDictionary
Export extension dictionary.
Declaration
public static Dictionary<Type, string> ExportExtensionDictionary
Field Value
Type | Description |
---|---|
Dictionary<Type, string> |
ImporterDictionary
Asset importer dictionary.
Declaration
public static Dictionary<string, IAssetImporter> ImporterDictionary
Field Value
Type | Description |
---|---|
Dictionary<string, IAssetImporter> |
Importers
Asset importer collection.
Declaration
public static List<IAssetImporter> Importers
Field Value
Type | Description |
---|---|
List<IAssetImporter> |
IntermediateDirectory
The intermediate directory.
Declaration
public static string IntermediateDirectory
Field Value
Type | Description |
---|---|
string |
OutputFolder
The intermediate directory.
Declaration
public static string OutputFolder
Field Value
Type | Description |
---|---|
string |
Properties
DefaultImporter
Gets the default importer.
Declaration
public static DefaultImporter DefaultImporter { get; }
Property Value
Type | Description |
---|---|
DefaultImporter |
Methods
FindImporter(string)
Gets importer by filename.
Declaration
public static IAssetImporter FindImporter(string fileName)
Parameters
Type | Name | Description |
---|---|---|
string | fileName | File name. |
Returns
Type | Description |
---|---|
IAssetImporter | Importer by filename or default importer. |
ImportAssetSource(AssetStream, bool, bool)
Imports asset by stream.
Declaration
public static IAssetSource ImportAssetSource(AssetStream assetStream, bool importData = false, bool rawAsset = false)
Parameters
Type | Name | Description |
---|---|---|
AssetStream | assetStream | Asset stream. |
bool | importData | Indicates if should preprocess. |
bool | rawAsset | The asset is loaded as raw asset. |
Returns
Type | Description |
---|---|
IAssetSource | Asset source object. |
ImportAssetSource(string, bool)
Imports an asset.
Declaration
public static IAssetSource ImportAssetSource(string path, bool importData = false)
Parameters
Type | Name | Description |
---|---|---|
string | path | File path. |
bool | importData | Indicates if need import the data. |
Returns
Type | Description |
---|---|
IAssetSource | Asset source object. |