docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PackageNotificationUtils

    Static utility class for managing package notifications for packages.

    Inheritance
    object
    PackageNotificationUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.XR.Management
    Assembly: Unity.XR.Management.Editor.dll
    Syntax
    public static class PackageNotificationUtils

    Properties

    registeredPackagesWithNotifications

    Dictionary of packages that have notification to report. When a package is added to the project, that package will register itself with this container if it requires access to notification functionality.

    Declaration
    public static IReadOnlyDictionary<string, PackageNotificationInfo> registeredPackagesWithNotifications { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<string, PackageNotificationInfo>
    Remarks

    This is a read-only dictionary and cannot be modified. To modify the dictionary, use the RegisterPackageNotificationInformation(string, PackageNotificationInfo) method.

    Methods

    RegisterPackageNotificationInformation(string, PackageNotificationInfo)

    Registers a given package ID as having a notification and supplies that notification.

    Declaration
    public static void RegisterPackageNotificationInformation(string packageId, PackageNotificationInfo notificationInfo)
    Parameters
    Type Name Description
    string packageId

    The metadata identifier for a given package packageId

    PackageNotificationInfo notificationInfo

    The PackageNotificationInfo for the package that corresponds to packageId.

    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)