DefaultAssetFactory<T> Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
An implementation of the AssetFactory<T> class that uses the default public parameterless constructor of the associated asset type.
Derived from DefaultAssetFactory<T>:
public class DefaultAssetFactory<T> : AssetFactory<T>, IAssetFactory<T> where T : Asset
Type Parameters
| Name | Description |
|---|---|
| T | The type of asset this factory can create. |
| Name | Description | |
|---|---|---|
| Methods | ||
| Create() | ||
| New() | Creates a new instance of the asset type associated to this factory. |
|
Methods
Create()
public static T Create()
Returns
| Type | Description |
|---|---|
| T |
New()
Creates a new instance of the asset type associated to this factory.
public override T New()
Returns
| Type | Description |
|---|---|
| T | A new instance of the asset type associated to this factory. |
Overrides
Stride.Core.Assets.AssetFactory<T>.New()