Class BuildContext | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class BuildContext

    Basic implementation of IBuildContext. Stores data generated during a build.

    Inheritance
    System.Object
    BuildContext
    Namespace: UnityEditor.Build.Pipeline
    Syntax
    public class BuildContext : IBuildContext

    Constructors

    BuildContext()

    Default constructor

    Declaration
    public BuildContext()

    BuildContext(IContextObject[])

    Default constructor, adds the passed in parameters to the context.

    Declaration
    public BuildContext(params IContextObject[] buildParams)
    Parameters
    Type Name Description
    IContextObject[] buildParams

    The set of initial parameters to add to the context.

    Methods

    ContainsContextObject(Type)

    Declaration
    public bool ContainsContextObject(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    System.Boolean

    ContainsContextObject<T>()

    Declaration
    public bool ContainsContextObject<T>()where T : IContextObject
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    GetContextObject(Type)

    Declaration
    public IContextObject GetContextObject(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    IContextObject

    GetContextObject<T>()

    Declaration
    public T GetContextObject<T>()where T : IContextObject
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    SetContextObject(IContextObject)

    Declaration
    public void SetContextObject(IContextObject contextObject)
    Parameters
    Type Name Description
    IContextObject contextObject

    SetContextObject(Type, IContextObject)

    Declaration
    public void SetContextObject(Type type, IContextObject contextObject)
    Parameters
    Type Name Description
    Type type
    IContextObject contextObject

    SetContextObject<T>(IContextObject)

    Declaration
    public void SetContextObject<T>(IContextObject contextObject)where T : IContextObject
    Parameters
    Type Name Description
    IContextObject contextObject
    Type Parameters
    Name Description
    T

    TryGetContextObject(Type, out IContextObject)

    Declaration
    public bool TryGetContextObject(Type type, out IContextObject contextObject)
    Parameters
    Type Name Description
    Type type
    IContextObject contextObject
    Returns
    Type Description
    System.Boolean

    TryGetContextObject<T>(out T)

    Declaration
    public bool TryGetContextObject<T>(out T contextObject)where T : IContextObject
    Parameters
    Type Name Description
    T contextObject
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023