{!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} Interface IBuildContext | Scriptable Build Pipeline | 2.0.2
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IBuildContext

    Base interface for build data container system

    Namespace: UnityEditor.Build.Pipeline.Interfaces
    Assembly: solution.dll
    Syntax
    public interface IBuildContext

    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)