Class IAssetFactory
The asset objects factory.
Inheritance
IAssetFactory
Inherited Members
IAssetFactory
Assembly: FlaxEngine.dll
File: Engine/Content/Factories/IAssetFactory.h
Syntax
public class IAssetFactory
Constructors
~IAssetFactory()
Methods
Get()
Gets the all registered assets factories. Key is asset typename, value is the factory object.
Declaration
public static Collection Get()
Returns
Collection
|
GetUpgrader()
Gets the asset upgrader.
Declaration
public virtual IAssetUpgrader* GetUpgrader() const
Returns
IAssetUpgrader
Asset upgrader, or null if not used. |
New(const AssetInfo& info)
Creates new asset instance.
Declaration
public virtual Asset* New(const AssetInfo& info) = 0
Parameters
AssetInfo
info
The asset info structure. |
Returns
Asset
Created asset object. |
NewVirtual(const AssetInfo& info)
Creates new virtual asset instance. Virtual assets are temporary and exist until application exit.
Declaration
public virtual Asset* NewVirtual(const AssetInfo& info) = 0
Parameters
AssetInfo
info
The asset info structure. |
Returns
Asset
Created asset object. |
SupportsVirtualAssets()
Determines whenever the virtual assets are supported by this asset tpe factory.
Declaration
public virtual bool SupportsVirtualAssets() const
Returns
bool
True if can create virtual assets, otherwise false. |