docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor ScopedContext

    ScopedContext(FieldBox<T>, T, T)

    Constructor to link the context variable with the current scope context instance.

    Declaration
    public ScopedContext(FieldBox<T> contextScopedVariable, T initialValue, T disposedValue)
    Parameters
    Type Name Description
    FieldBox<T> contextScopedVariable

    The context variable reference to manage during the scope context

    T initialValue

    InitialValue set during creation of the scope context

    T disposedValue

    The value to set when the scope context is disposed

    In This Article
    Back to top
    Copyright © 2024 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)