Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    DefaultAssetFactory<T> Class

    Namespace: Stride.Core.Assets
    Assembly: Stride.Core.Assets.dll

    An implementation of the AssetFactory<T> class that uses the default public parameterless constructor of the associated asset type.

    System.Object → AssetFactory<T> → DefaultAssetFactory<T>
    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.

    | Improve this Doc View Source

    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()

    Inherited Members

    AssetFactory<T>.AssetType

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation