Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    AssetCompilerRegistry Class

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

    A registry containing the asset compilers of the assets.

    System.Object → AssetCompilerRegistry
    Derived from AssetCompilerRegistry:

    public sealed class AssetCompilerRegistry
    Name Description
    Constructors
    AssetCompilerRegistry()

    Create an instance of that registry

    Properties
    DefaultCompiler

    Gets or sets the default compiler to use when no compiler are explicitly registered for a type.

    Methods
    GetCompiler(Type, Type)

    Gets the compiler associated to an Asset type.

    RegisterCompiler(Type, IAssetCompiler, Type)

    Register a compiler for a given Asset type.

    | Improve this Doc View Source

    Constructors


    AssetCompilerRegistry()

    Create an instance of that registry

    public AssetCompilerRegistry()
    | Improve this Doc View Source

    Properties


    DefaultCompiler

    Gets or sets the default compiler to use when no compiler are explicitly registered for a type.

    public IAssetCompiler DefaultCompiler { get; set; }
    Property Value
    Type Description
    IAssetCompiler
    | Improve this Doc View Source

    Methods


    GetCompiler(Type, Type)

    Gets the compiler associated to an Asset type.

    public IAssetCompiler GetCompiler(Type type, Type context)
    Parameters
    Type Name Description
    System.Type type

    The type of the Asset

    System.Type context
    Returns
    Type Description
    IAssetCompiler

    The compiler associated the provided asset type or null if no compiler exists for that type.


    RegisterCompiler(Type, IAssetCompiler, Type)

    Register a compiler for a given Asset type.

    public void RegisterCompiler(Type type, IAssetCompiler compiler, Type context)
    Parameters
    Type Name Description
    System.Type type

    The type of asset the compiler can compile

    IAssetCompiler compiler

    The compiler to use

    System.Type context

    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