Class AssetCompilerRegistry
A registry containing the asset compilers of the assets.
public sealed class AssetCompilerRegistry
- Inheritance
-
AssetCompilerRegistry
Constructors
AssetCompilerRegistry()
Create an instance of that registry
public AssetCompilerRegistry()
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
Methods
GetCompiler(Type, Type)
Gets the compiler associated to an Asset type.
public IAssetCompiler GetCompiler(Type type, Type context)
Parameters
Returns
- 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
TypeThe type of asset the compiler can compile
compiler
IAssetCompilerThe compiler to use
context
Type