{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class BuildContext | Scriptable Build Pipeline | 2.0.2
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BuildContext

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

    Inheritance
    object
    BuildContext
    Implements
    IBuildContext
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEditor.Build.Pipeline
    Assembly: solution.dll
    Syntax
    public class BuildContext : IBuildContext

    Constructors

    Name Description
    BuildContext()

    Default constructor

    BuildContext(params IContextObject[])

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

    Methods

    Name Description
    ContainsContextObject(Type)

    Checks the build context for existence of a data that is of the specified type.

    ContainsContextObject<T>()

    Checks the build context for existence of a data that is of the specified type.

    GetContextObject(Type)

    Gets the data of the specified type contained in the build context.

    GetContextObject<T>()

    Gets the data of the specified type contained in the build context.

    SetContextObject(Type, IContextObject)

    Adds the data of the specified type to the build context.

    SetContextObject(IContextObject)

    Adds the data to the build context. Type will be inferred using Reflection.

    SetContextObject<T>(IContextObject)

    Adds the data of the specified type to the build context.

    TryGetContextObject(Type, out IContextObject)

    Tries to get the data of the specified type contained in the build context.

    TryGetContextObject<T>(out T)

    Tries to get the data of the specified type contained in the build context.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)