docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ContextChangedEvent<T>

    Event raised when the context has changed.

    Inheritance
    object
    EventBase
    EventBase<ContextChangedEvent<T>>
    ContextChangedEvent<T>
    Implements
    IDisposable
    Inherited Members
    EventBase<ContextChangedEvent<T>>.TypeId()
    EventBase<ContextChangedEvent<T>>.GetPooled()
    EventBase<ContextChangedEvent<T>>.Dispose()
    EventBase<ContextChangedEvent<T>>.eventTypeId
    EventBase.RegisterEventType()
    EventBase.PreDispatch()
    EventBase.PreDispatch(IPanel)
    EventBase.PostDispatch()
    EventBase.PostDispatch(IPanel)
    EventBase.StopPropagation()
    EventBase.StopImmediatePropagation()
    EventBase.PreventDefault()
    EventBase.timestamp
    EventBase.bubbles
    EventBase.tricklesDown
    EventBase.target
    EventBase.isPropagationStopped
    EventBase.isImmediatePropagationStopped
    EventBase.isDefaultPrevented
    EventBase.propagationPhase
    EventBase.currentTarget
    EventBase.dispatch
    EventBase.imguiEvent
    EventBase.originalMousePosition
    EventBase.pooled
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public class ContextChangedEvent<T> : EventBase<ContextChangedEvent<T>>, IDisposable where T : IContext
    Type Parameters
    Name Description
    T

    The type of the context.

    Constructors

    ContextChangedEvent()

    Default constructor.

    Declaration
    public ContextChangedEvent()

    Properties

    context

    The new context.

    Declaration
    public T context { get; }
    Property Value
    Type Description
    T

    Methods

    GetPooled(T)

    Gets a pooled event instance.

    Declaration
    public static ContextChangedEvent<T> GetPooled(T context)
    Parameters
    Type Name Description
    T context

    The new context.

    Returns
    Type Description
    ContextChangedEvent<T>

    A pooled event instance.

    Init()

    Resets all event members to their initial values.

    Declaration
    protected override void Init()
    Overrides
    UnityEngine.UIElements.EventBase<Unity.AppUI.UI.ContextChangedEvent<T>>.Init()

    Implements

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