PackageCompiler Class
Namespace: Stride.Core.Assets.CompilerAssembly: Stride.Core.Assets.dll
A package assets compiler. Creates the build steps necessary to produce the assets of a package.
System.Object →
PackageCompiler
Derived from PackageCompiler:
public class PackageCompiler : IPackageCompiler
Name | Description | |
---|---|---|
Constructors | ||
PackageCompiler(IPackageCompilerSource) | ||
Fields | ||
AssetCompiled | Raised when a single asset has been compiled. |
|
Properties | ||
SdkDirectory | Gets or sets the SDK directory. Default is bound to env variable StrideSdkDir |
|
Methods | ||
Prepare(AssetCompilerContext) | Compile the current package session. That is generate the list of build steps to execute to create the package assets. |
Constructors
PackageCompiler(IPackageCompilerSource)
public PackageCompiler(IPackageCompilerSource packageCompilerSource)
Parameters
Type | Name | Description |
---|---|---|
IPackageCompilerSource | packageCompilerSource |
Fields
AssetCompiled
Raised when a single asset has been compiled.
public EventHandler<AssetCompiledArgs> AssetCompiled
Field Value
Type | Description |
---|---|
System.EventHandler<AssetCompiledArgs> |
Properties
SdkDirectory
Gets or sets the SDK directory. Default is bound to env variable StrideSdkDir
public static string SdkDirectory { get; set; }
Property Value
Type | Description |
---|---|
System.String | The SDK directory. |
Methods
Prepare(AssetCompilerContext)
Compile the current package session. That is generate the list of build steps to execute to create the package assets.
public AssetCompilerResult Prepare(AssetCompilerContext compilerContext)
Parameters
Type | Name | Description |
---|---|---|
AssetCompilerContext | compilerContext |
Returns
Type | Description |
---|---|
AssetCompilerResult |