Class AssetDependenciesCompiler
An asset compiler that will compile an asset with all its dependencies.
public class AssetDependenciesCompiler
- Inheritance
-
objectAssetDependenciesCompiler
- Extension Methods
Constructors
AssetDependenciesCompiler(Type)
public AssetDependenciesCompiler(Type compilationContext)
Parameters
compilationContextType
Fields
BuildDependencyManager
public readonly BuildDependencyManager BuildDependencyManager
Field Value
Properties
UnloadableAssetIsError
Whether an asset whose type is not loaded (IUnloadable) fails the preparation, as in a game build. Otherwise (the editor's previews, thumbnails and editor game) it is skipped with a warning, and the other assets still prepare.
public bool UnloadableAssetIsError { get; init; }
Property Value
Methods
Prepare(AssetCompilerContext, AssetItem)
Prepare a single asset to be built
public AssetCompilerResult Prepare(AssetCompilerContext context, AssetItem assetItem)
Parameters
contextAssetCompilerContextThe AssetCompilerContext
assetItemAssetItemThe asset to build
Returns
PrepareMany(AssetCompilerContext, List<AssetItem>)
Prepare the list of assets to be built, building all the steps and linking them properly
public AssetCompilerResult PrepareMany(AssetCompilerContext context, List<AssetItem> assetItems)
Parameters
contextAssetCompilerContextThe AssetCompilerContext
assetItemsList<AssetItem>The assets to prepare for build
Returns
Events
AssetCompiled
Raised when a single asset has been compiled.
public event EventHandler<AssetCompiledArgs>? AssetCompiled