Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    PackageCompiler Class

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

    | Improve this Doc View Source

    Constructors


    PackageCompiler(IPackageCompilerSource)

    public PackageCompiler(IPackageCompilerSource packageCompilerSource)
    Parameters
    Type Name Description
    IPackageCompilerSource packageCompilerSource
    | Improve this Doc View Source

    Fields


    AssetCompiled

    Raised when a single asset has been compiled.

    public EventHandler<AssetCompiledArgs> AssetCompiled
    Field Value
    Type Description
    System.EventHandler<AssetCompiledArgs>
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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

    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