Class AssetImportManager
Asset import manager class.
Namespace: Evergine.Framework.Assets
Assembly: Evergine.Framework.dll
Syntax
public class AssetImportManager
Fields
ExportExtensionDictionary
Exports the extension dictionary.
Declaration
public static Dictionary<Type, string> ExportExtensionDictionary
Field Value
| Type | Description |
|---|---|
| Dictionary<Type, string> |
ImporterDictionary
Dictionary for asset importers.
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
ApplySettings(ProjectParameters)
Apply the project settings to the importers.
Declaration
public static void ApplySettings(ProjectParameters projectSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectParameters | projectSettings | The project settings. |
FindImporter(string)
Gets importer by file name.
Declaration
public static IAssetImporter FindImporter(string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fileName | File name. |
Returns
| Type | Description |
|---|---|
| IAssetImporter | Importer by file name or default importer. |
ImportAssetSource(AssetStream, bool, bool)
Imports an asset by stream.
Declaration
public static IAssetSource ImportAssetSource(AssetStream assetStream, bool importData = false, bool rawAsset = false)
Parameters
| Type | Name | Description |
|---|---|---|
| AssetStream | assetStream | The asset stream. |
| bool | importData | Indicates if preprocessing should be done. |
| bool | rawAsset | The asset is loaded as a raw asset. |
Returns
| Type | Description |
|---|---|
| IAssetSource | An 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 the data needs to be imported. |
Returns
| Type | Description |
|---|---|
| IAssetSource | Asset source object. |