AssetFactory<T> Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
A base implementation of the IAssetFactory<T> interface.
System.Object →
AssetFactory<T>
Derived from AssetFactory<T>: DefaultAssetFactory<T>
public abstract class AssetFactory<T> : IAssetFactory<T> where T : Asset
Type Parameters
| Name | Description |
|---|---|
| T | The type of asset this factory can create. |
| Name | Description | |
|---|---|---|
| Properties | ||
| AssetType | Retrieve the asset type associated to this factory. |
|
| Methods | ||
| New() | Creates a new instance of the asset type associated to this factory. |
|
Properties
AssetType
Retrieve the asset type associated to this factory.
public Type AssetType { get; }
Property Value
| Type | Description |
|---|---|
| System.Type | The asset type associated to this factory. |
Methods
New()
Creates a new instance of the asset type associated to this factory.
public abstract T New()
Returns
| Type | Description |
|---|---|
| T | A new instance of the asset type associated to this factory. |