docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IGlobalContextProvider

    Interface for providing a global context. This is used to provide a context that is shared across all tests.

    Namespace: UnityEngine.TestTools.Graphics
    Assembly: UnityEngine.TestTools.Graphics.dll
    Syntax
    [Obsolete("Extend GlobalContext<TEnum> instead. See IPlatformNode.Activate for the new activation pattern.")]
    public interface IGlobalContextProvider

    Properties

    Context

    The context value. This should be the value of some enum or other constant that represents the context. Cast to an int.

    Declaration
    int Context { get; }
    Property Value
    Type Description
    int

    ContextType

    The type of the context value.

    Declaration
    Type ContextType { get; }
    Property Value
    Type Description
    Type

    Methods

    ActivateContext(int)

    Activates the given context value.

    Declaration
    void ActivateContext(int context)
    Parameters
    Type Name Description
    int context

    The context value. This should be the value of some enum or other constant that represents the context. Cast to an int.

    OnContextRegistered()

    An event that is called when the context is registered.

    Declaration
    void OnContextRegistered()

    OnContextUnregistered()

    An event that is called when the context is unregistered.

    Declaration
    void OnContextUnregistered()
    In This Article
    Back to top
    Copyright © 2026 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)