Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    AssetFactory<T> Class

    Namespace: Stride.Core.Assets
    Assembly: 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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.


    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